- 論壇徽章:
- 0
|
環(huán)境:HP PA-RISC ,
HP-UX hp B.11.11 U 9000/800 1573750588 unlimited-user license
gcc用到了Oracle的庫,Oracle是9i for hp-ux 64位,鏈接的時候報錯:
//usr/ccs/bin/ld: /oracle/9.2/lib/libclntsh.sl: Mismatched ABI. 64-bit PA shared library found in 32-bit link.
collect2: ld returned 1 exit status
*** Error exit code 1
查看相關(guān)文件格式:
file /oracle/9.2/lib/libclntsh.sl*
/oracle/9.2/lib/libclntsh.sl: ELF-64 shared object file - PA-RISC 2.0 (LP64)
/oracle/9.2/lib/libclntsh.sl.9.0: ELF-64 shared object file - PA-RISC 2.0 (LP64)
file *.o
authenticate.o: PA-RISC2.0 relocatable object
backup.o: PA-RISC2.0 relocatable object
gcc版本:
gcc --version
gcc (GCC) 4.1.2
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
請問:這個問題該如何解決?是否在gcc編譯的時候要加特定參數(shù)?
ps:google 這個問題找不到答案,只有人說是“l(fā)ib 32 and 64 problem...”。 |
|