Thank You Marc. Please tell me in future if you will have any success with cygwin issue.<br><br>I also played with little  .sh file.<br clear="all">export GAMBCDIR_INCLUDE=/usr/local/Gambit-C/include/<br>export GAMBCDIR_LIB=/usr/local/Gambit-C/lib<br>

sh gambc-cc.bat exe test.c<br><br>That returns only  `_WinMain@16' error<br><br><div class="gmail_quote">On Fri, Mar 18, 2011 at 8:58 PM, Marc Feeley <span dir="ltr"><<a href="mailto:feeley@iro.umontreal.ca">feeley@iro.umontreal.ca</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">The problem appears to be in the implementation of shell-command (which in turn calls open-process).<br>


<br>
I don't have a fix yet.  Unfortunately, as part of the compilation process, "gsc -obj" and "gsc -exe" need to call open-process (to run the script gambc-cc.bat which actually calls the C compiler).<br>


<br>
I will investigate.<br>
<br>
Also, to compile the .c files you need to pass a bunch of options to the C compiler.  That information is found in bin/gambc-cc.bat .  You can also read the manual, but it may contain stale information regarding cygwin.<br>


<br>
Marc<br>
<div><div></div><div class="h5"><br>
<br>
On 2011-03-17, at 2:25 PM, Valeriya Pudova wrote:<br>
<br>
> Hello,<br>
><br>
><br>
> I have compiled with cygwin the latest gambit version (4.6.0). Was used sequence<br>
><br>
> ./configure --enable-single-host<br>
> make<br>
> make install<br>
><br>
> The "make check" stop in infinity loop after:<br>
> ../gsi/gsi -:h4000,~~bin=../bin,~~lib=../lib,~~include=../include -f error.scm < error.scm > test2.out<br>
><br>
> Anyway. After installation the "gsi" works. "gsc -c" also.<br>
><br>
> But "gsi -obj" or "gsc -exe" dying in infinity loop<br>
> (can be terminated by ctrl+c with message *** INTERRUPTED IN ##make-device-port-from-single-device)<br>
><br>
> If try compile file .c file by gcc there is error:<br>
>  undefined reference to `_WinMain@16'<br>
><br>
> Also log has allot of<br>
> /tmp/cco0Sj28.o:test.c:(.text+0x71): undefined reference to `____gstate'<br>
> /tmp/cco0Sj28.o:test.c:(.text+0x84): undefined reference to `____G_fac'<br>
> /tmp/cco0Sj28.o:test.c:(.text+0xbc): undefined reference to `____gstate'<br>
> /tmp/cco0Sj28.o:test.c:(.text+0xd4): undefined reference to `____G_fac'<br>
> ....<br>
><br>
> Any ideas?<br>
><br>
> -- Valeriya<br>
</div></div>> _______________________________________________<br>
> Gambit-list mailing list<br>
> <a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
> <a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
<br>
</blockquote></div><br>