|
我已经把 libsgip.a 拷到 /usr/local/lib/ 下,还是出现下面的错误,到底是什么原因啊?
g++ -D_REENTRANT -DTHREAD -DPTHREADS -w -g -o submit submit.o -lsgip
submit.o(.text+0x30): In function `main':
/home/ktting/SGIPAPI/include/submit.cc:31: undefined reference to `SGIP_Init(char*, short, char*, short, int)'
submit.o(.text+0x45):/home/ktting/SGIPAPI/include/submit.cc:32: undefined reference to `SGIP_Bind(char*, char*)'
submit.o(.text+0xcf):/home/ktting/SGIPAPI/include/submit.cc:39: undefined reference to `SGIP_Submit(char*, char*, int, char*, char*, char*, unsigned char, char*, char*, unsigned char, unsigned char, unsigned char, char*, char*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned, char*, char*, unsigned*, unsigned*, unsigned*)'
submit.o(.text+0xed):/home/ktting/SGIPAPI/include/submit.cc:65: undefined reference to `SGIP_Unbind()'
submit.o(.text+0x10:/home/ktting/SGIPAPI/include/submit.cc:67: undefined reference to `SGIP_Listen()'
submit.o(.text+0x137):/home/ktting/SGIPAPI/include/submit.cc:71: undefined reference to `SGIP_GetPackage(int, int*, deliverstr*, reportstr*)'
collect2: ld returned 1 exit status
make: *** [submit] Error 1 |
|