Operating System - HP-UX
1753487 Members
4558 Online
108794 Solutions
New Discussion

Re: gcc Static Compilation ld: errors

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor
Solution

Re: gcc Static Compilation ld: errors

main.o: ELF-64 relocatable object file -PA-RISC 2.0 (LP64)
>I'm still unable to compile.

(You can compile fine, you can't link.)

Why are you creating a 64 bit executable?
If you really need to do this, you need to get 64 bit versions of all of your libs. And point your -L paths to that directory.

Otherwise you'll need to get the gcc 32 bit compiler.
Shamim1
Advisor

Re: gcc Static Compilation ld: errors

Thank You Very Much.
It solve my problem,
Great forum to get solution to problmes.

Regards
Shamim