- 论坛徽章:
- 0
|
环境: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
查看相关文件格式:
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编译的时候要加特定参数?
ps:google 这个问题找不到答案,只有人说是“lib 32 and 64 problem...”。 |
|