Operating System - HP-UX
1753520 Members
4515 Online
108795 Solutions
New Discussion юеВ

Error while compiling with GCC

 
SOLVED
Go to solution
Tata Consultants
Occasional Advisor

Error while compiling with GCC

Hi,

I'm getting the below error while compiling my program. Could someone please help me resolve it.

# /opt/hp-gcc64-4.4.3/bin/gcc -Wall vf -o vf.c
ld: Unable to load shared library "/opt/langtools/lib/libcomp.sl"
Fatal error.
collect2: ld returned 1 exit status

As, I googled the problem the most responses I got was to apply patch PHSS_26793. But, that patch is for 11i v1 and my OS is 11iv3.
3 REPLIES 3
Dennis Handly
Acclaimed Contributor
Solution

Re: Error while compiling with GCC

>gcc -Wall vf -o vf.c

You appear to have your options in the wrong order:
gcc -Wall -o vf vf.c

The correct linker patch on IPF would be PHSS_41179.
Tata Consultants
Occasional Advisor

Re: Error while compiling with GCC

Thanks Dennis
Tata Consultants
Occasional Advisor

Re: Error while compiling with GCC

Closed