我需要一些基本的了解
此文件夹中有4个文件
Makefile,libfoo_8_3.so,libfoo_9_3.so,test.c
我将test.c编译为目标文件test.o和.d文件。这样可以编译
我的c程序使用了这两个动态库(libfoo_8_3.so libfoo_9_3.so) 我想做可执行文件。
我正在使用Makefile,因为我需要其他文件夹中存在的c文件的标头和结构。
我想制作一个可执行的二进制文件, 当我做类似
gcc -fno-builtin-log -fno-omit-frame-pointer -msse2 -DMEMS_DEBUG -DMEMS_DISABLED -D__HMAP_64BIT_COMPLIANT_ID_LENGTH__ -DNETOID_LINUX -D_REENTRANT -DXML_BYTE_ORDER=12 -DNX_BYTE_ORDER=12 -DTHIRTY_TWO_BIT -DALLOW_ISERVER_H323 -D_POSIX_PTHREAD_SEMANTICS -DMEMS_DEBUG -ggdb -L/usr/local/lib -L/usr/lib64 -L/SBC/lib/x86_64 -L/SBC/pkgs_x86_64/def/lib -L/SBC/bin/x86_64 -I(Include many folders)
-o test test.o
This gives me following error ->
est.o: In function `main':
/SBC/ser/test.c:33: undefined reference to `dlopen'
/SBC/ser/test.c:35: undefined reference to `dlopen'
/SBC/ser/test.c:50: undefined reference to `dlsym'
/SBC/ser/test.c:52: undefined reference to `dlsym'
/SBC/ser/test.c:68: undefined reference to `tracer_tag_key'
/SBC/ser/test.c:68: undefined reference to `pthread_getspecific'
/SBC/ser/test.c:68: undefined reference to `netLogStruct'
/SBC/ser/test.c:68: undefined reference to `NetLogModuleFacilities'
/SBC/ser/test.c:68: undefined reference to `NetLogModuleNames'
/SBC/ser/test.c:68: undefined reference to `NetSyslogSprintf'
/SBC/ser/test.c:68: undefined reference to `netLogStruct'
/SBC/ser/test.c:68: undefined reference to `NetLogModuleNames'
/SBC/ser/test.c:74: undefined reference to `tracer_tag_key'
/SBC/ser/test.c:74: undefined reference to `pthread_getspecific'
/SBC/ser/test.c:74: undefined reference to `netLogStruct'
/SBC/ser/test.c:74: undefined reference to `NetLogModuleFacilities'
/SBC/ser/test.c:74: undefined reference to `NetLogModuleNames'
/SBC/ser/test.c:74: undefined reference to `NetSyslogSprintf'
/SBC/ser/test.c:74: undefined reference to `netLogStruct'
/SBC/ser/test.c:74: undefined reference to `NetLogModuleNames'
/SBC/ser/test.c:82: undefined reference to `tracer_tag_key'
/SBC/ser/test.c:82: undefined reference to `pthread_getspecific'
/SBC/ser/test.c:82: undefined reference to `netLogStruct'
/SBC/ser/test.c:82: undefined reference to `NetLogModuleFacilities'
/SBC/ser/test.c:82: undefined reference to `NetLogModuleNames'
/SBC/ser/test.c:82: undefined reference to `NetSyslogSprintf'
/SBC/ser/test.c:82: undefined reference to `netLogStruct'
/SBC/ser/test.c:82: undefined reference to `NetLogModuleNames'
我需要对此有适当的了解,或者如何解决?