[gambit-list] undefined symbols error when compiling

antonitio antonitio at gmail.com
Tue Aug 25 12:15:28 EDT 2009


hi,

i'm trying to compile scheme to c code.

here's the hello.scm code:
(display "hello world")
(newline)

compiled ok with gsc:
/usr/local/Gambit-C/bin/gsc -c hello.scm

however when tried to compile with gcc produced the following error:
gcc test.c -I/usr/local/Gambit-C/include -L/usr/local/Gambit-C/lib
Undefined symbols:
  "____gstate", referenced from:
      ____gstate$non_lazy_ptr in cccK2CZQ.o
  "_main", referenced from:
      start in crt1.10.5.o
  "____G__20_test", referenced from:
      ____G__20_test$non_lazy_ptr in cccK2CZQ.o
  "____G_display", referenced from:
      ____G_display$non_lazy_ptr in cccK2CZQ.o
  "____G_newline", referenced from:
      ____G_newline$non_lazy_ptr in cccK2CZQ.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

i'm running on mac os x:
uname -srmp; gcc --version
Darwin 9.8.0 i386 i386
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)

did i miss some settings or steps?

thanks,

antonitio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20090826/302e8ebc/attachment.htm>


More information about the Gambit-list mailing list