chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Problem with static compile


From: Eric Merritt
Subject: [Chicken-users] Problem with static compile
Date: Sat, 27 Aug 2005 21:35:57 -0700

I am having a problem trying to get a small example program to compile
statically. This seems to follow the what is shown in the wiki. This
is just a simple test program, I am more interested in how to
statically compile a program that makes use of eggs. Following is the
output from my attempts.



% csc main.scm -static -uses srfi-17 -uses bb 
   
main.o(.text+0x60d): In function `f_31':
/home/emerritt/small-1.0/src/main.c:139: undefined reference to
`C_srfi_17_toplevel'
main.o(.text+0x6b9): In function `f_34':
/home/emerritt/small-1.0/src/main.c:151: undefined reference to `C_bb_toplevel'
collect2: ld returned 1 exit status
*** Shell command terminated with exit status 1: gcc -o main main.o
/home/emerritt/local/lib/libchicken.a -L/home/emerritt/local/lib
-Wl,-R/home/emerritt/local/lib -static  -ldl -lm




reply via email to

[Prev in Thread] Current Thread [Next in Thread]