Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

Error while compiling with GCC

SOLVED
Go to solution
Highlighted
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
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