|
藍森林 http://www.lslnet.com 2006年6月6日 10:18
gcc可以link 64位的solaris函數庫嗎?
gcc版本3.2
link oracle的庫libclntsh.so時報以下錯誤:
ld: 致命的: 文件 /export/home/oracle/app/oracle/product/9.0.1/lib//libclntsh.so: 錯誤的 ELF 類型: ELFCLASS64 |
gcc可以link 64位的solaris函數庫嗎?
You are trying to link a a 32-bit Oracle.so against a 64-bit Oracle library. I don't have Oracle64 to hand, but I believe there is a 'lib32' directory under $ORACLE_HOME that contains the 32-bit libraries. I also believe Oracle submitted a patch to fix this. please approach Oracle for more details. |
gcc可以link 64位的solaris函數庫嗎?
It's because I compile the .c file with 32-bit option, and
link a 64-bit .so .
After I put a -m64 option to the gcc, this problem is solved.
Thanks. |
gcc可以link 64位的solaris函數庫嗎?
I got a success of compile and link with -m64 option ,but something was reported in console when I executed my program, 段錯誤. what happened? how can i solve it? |
| |