On 7/20/05, John.Cowan <[EMAIL PROTECTED]> wrote: > I'm using chicken-2.0. > > I'm having trouble distributing C files correctly using the "hello world" > example in section 3.5 of the manual. The host system is Cygwin and > the target is Solaris 8 with gcc 2.95.2. > > I compiled hello.scm with the specified options to "chicken" and then > transported "hello.c", "library.c", "runtime.c", and "chicken.h" as > specified to the Solaris host and compiled successfully. > > However, specifying "-explicit-use -uses hello.c" when running "chicken" > bought me a linker error saying that C_hello_c_toplevel was undefined. > Omitting these options told me instead that C_eval_toplevel and > C_extras_toplevel were undefined.
The example in the manual is simply wrong. The chicken invocation should be % chicken hello.scm -explicit-use -uses library -optimize-level 2 -debug-level 0 Sorry about that. My head bows in shame. (Alternatively, remove the "-explicit-use" and add extras.c and eval.c to the Makefile). cheers, felix _______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
