> I am getting the an error while compiling my program with -explicit-use. > > > $ make > gcc server.c scm_uv.c runtime.o library.o srfi-69.o uv/uv.a -Os > -fomit-frame-pointer -fno-strict-aliasing -o server -lm > /tmp/ccxRIoEH.o: In function `C_toplevel': > server.c:(.text+0x689): undefined reference to > `C_library_2csrfi_2d69_toplevel' > srfi-69.o: In function `C_srfi_2d69_toplevel': > srfi-69.c:(.text+0xf9a5): undefined reference to > `C_library_2csrfi_2d69_toplevel' > > > Here is my make file > > > server: server.c scm_uv.c runtime.o library.o srfi-69.o uv/uv.a > gcc server.c scm_uv.c runtime.o library.o srfi-69.o uv/uv.a -Os > -fomit-frame-pointer -fno-strict-aliasing -o server -lm > server.c: server.scm > chicken server.scm -explicit-use -uses library,srfi-69 > runtime.o: runtime.c library.c srfi-69.c
Hi, Santosh! This is a bug in the processing of the "-uses" option. The documentation says it allows multiple arguments, split by ",", but that was actually wrong. This has been fixed in the git repository, but you can simply replace "-uses library,srfi-69" with "-uses library -uses srfi-69". cheers, felix _______________________________________________ Chicken-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-users
