Documentation:Procedure compile-file

From Gambit wiki

Revision as of 17:02, 20 September 2009 by Jonathan Arkell (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

User contributed comments, clarifications and examples

I couldn't get compile-file to work under cygwin with a Gambit install out of the box. Instead I had to make a few modifications:

First you have to move ~~/bin/gambc-cc.bat to ~~/bin/ (Assuming you got the unix version. You can compare it with the <gambit-src-distro>/bin/gambc-cc.bat.unix to be sure).

Next up, make a simple dos batch file to call the bash file:

 c:\bin\bash.exe /usr/local/Gambit-C/v4.5.2/bin/ %*

Don't forget to set the path to wherever you installed Gambit!

Finally, make sure both the bat and sh scripts have the executable flag set

 chmod 777
 chmod 777 gambc-cc.bat

After that, compilation with (compile-file) should work perfectly.

Personal tools