linking problems

Andreas.Eversberg Andreas.Eversberg at versatel.de
Fri May 28 08:02:24 UTC 2010


hi again,
 
here is the current compiler output. compile works, but linking fails:
 
 
gcc -Wall -I../../libosmocore/include/ -I../../libosmocore/include/ -g
-O2 ../../libosmocore/src/.libs/libosmocore.a  -o bsc_hack bsc_hack.o
bsc_init.o
 bsc_vty.o vty_interface_layer3.o libmsc.a libbsc.a libvty.a libmsc.a
-ldl -ldbi  ../../libosmocore/src/vty/.libs/libosmovty.a -lcrypt
bsc_hack.o: In function `main':
/files/projects/isdn/openbsc/openbsc/src/bsc_hack.c:215: undefined
reference to `log_init'
/files/projects/isdn/openbsc/openbsc/src/bsc_hack.c:216: undefined
reference to `talloc_named_const'
/files/projects/isdn/openbsc/openbsc/src/bsc_hack.c:221: undefined
reference to `log_target_create_stderr'
/files/projects/isdn/openbsc/openbsc/src/bsc_hack.c:222: undefined
reference to `log_add_target'
/files/projects/isdn/openbsc/openbsc/src/bsc_hack.c:229: undefined
reference to `log_set_all_filter'
...
 
libosmocore.a has a reference to 'log_init', but the linker will not
find it somehow. any idea?
 
andreas

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20100528/be0015b8/attachment.html>


More information about the OpenBSC mailing list