Operating System - HP-UX
1833875 Members
1896 Online
110063 Solutions
New Discussion

Re: Asking for compiling c-code in 64bit environment.

 
yck
Advisor

Asking for compiling c-code in 64bit environment.

I try to compile a simple file in 64-bit environment but these error message appear.

cc -c -Aa +O3 +DA2.0W +DD64 test.c
cc -Aa +O3 +DA2.0W +DD64 test.o -o test -L/usr/lib/X11R5
ld: Can't find library for -lc
Fatal error.
Build: Line 26 in makefile: error exit 1 from command:
"cc -Aa +O3 +DA2.0W +DD64 test.o -o test -L/usr/lib/X11R5".

Is that i missed out something? Thanks..
ck
2 REPLIES 2
Klaus Crusius
Trusted Contributor

Re: Asking for compiling c-code in 64bit environment.


verify you have /usr/lib/pa20_64/libc.* .

That should be installed with products
on HPUX11.0:

OS-Core/C-MIN-64ALIB
OS-Core/CORE-64SLIB
There is a live before death!
yck
Advisor

Re: Asking for compiling c-code in 64bit environment.

after i check it, i find many file inside /usr/lib/pa20_risc include this 3 files :
/usr/lib/pa20_64/libc.2*
/usr/lib/pa20_64/libc.a
/usr/lib/pa20_64/libc.sl@ -> ./libc.2

Is this 3 files is what u mention?

And what u means by
OS-Core/C-MIN-64ALIB
OS-Core/CORE-64SLIB ?

Thanks....
ck