hi,<br><br>i'm trying to compile scheme to c code.<br><br>here's the hello.scm code:<br>(display "hello world")<br>(newline)<br><br>compiled ok with gsc:<br>/usr/local/Gambit-C/bin/gsc -c hello.scm<br><br>
however when tried to compile with gcc produced the following error:<br>gcc test.c -I/usr/local/Gambit-C/include -L/usr/local/Gambit-C/lib<br>Undefined symbols:<br>  "____gstate", referenced from:<br>      ____gstate$non_lazy_ptr in cccK2CZQ.o<br>
  "_main", referenced from:<br>      start in crt1.10.5.o<br>  "____G__20_test", referenced from:<br>      ____G__20_test$non_lazy_ptr in cccK2CZQ.o<br>  "____G_display", referenced from:<br>
      ____G_display$non_lazy_ptr in cccK2CZQ.o<br>  "____G_newline", referenced from:<br>      ____G_newline$non_lazy_ptr in cccK2CZQ.o<br>ld: symbol(s) not found<br>collect2: ld returned 1 exit status<br><br>i'm running on mac os x:<br>
uname -srmp; gcc --version<br>Darwin 9.8.0 i386 i386<br>i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)<br><br>did i miss some settings or steps?<br><br>thanks,<br><br>antonitio<br>