当前位置: 技术问答>linux和unix
编译动态连接库是报错!在线急等回答!!
来源: 互联网 发布时间:2015-10-30
本文导语: /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function `_start': /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18): undefined reference to `main' | gcc -shared -fPIC -o EX301SP2.so EX301SP2.c -I$ORACLE_HOM...
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18): undefined reference to `main'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18): undefined reference to `main'
|
gcc -shared -fPIC -o EX301SP2.so EX301SP2.c -I$ORACLE_HOME/precomp/public -L$ORACLE_HOME/lib -lclntsh