Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

Error while compiling with GCC

SOLVED
Go to Solution
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.
1 ACCEPTED SOLUTIONS
Acclaimed Contributor Acclaimed Contributor

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.
3 REPLIES
Acclaimed Contributor Acclaimed Contributor

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.
Occasional Advisor

Re: Error while compiling with GCC

Thanks Dennis
Highlighted
Occasional Advisor

Re: Error while compiling with GCC

Closed