1837395 Members
3241 Online
110116 Solutions
New Discussion

Re: Linker Problem

 
Alfonso_15
Advisor

Linker Problem

Good Morning:
I m compiling a program server.cc with g++ (GNU 3.2.3) and he generate a object server.o. When I try to link with Oracle libraries the linker has a trouble by the type of files:
server.o :PA-RISC2.0 relocatable object
libclntsh.sl :ELF-64 shared object file - PA-RISC 2.0 (LP64)
What arguments could I use for in g++ for generates my object server.o type "ELF-64 relocatable object file - PA-RISC 2.0 (LP64)" and in this way be compatible with the oracle libraries?
Thanks in advance for your help.



alfonsoarias
3 REPLIES 3
harry d brown jr
Honored Contributor

Re: Linker Problem

-melf

??

live free or die
harry
Live Free or Die
Mike Stroyan
Honored Contributor

Re: Linker Problem

g++ itself comes in different versions to generate 32-bit and 64-bit executables. You can get a 64-bit gcc/g++ from http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html
Ollie R
Respected Contributor

Re: Linker Problem

Hi,

I think you need:
-mpa-risc-2-0

Hope this helps,

Ollie.
To err is human but to not award points is unforgivable