Operating System - Linux
1752746 Members
4708 Online
108789 Solutions
New Discussion юеВ

Re: Run time can't find libstdc++.so

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: Run time can't find libstdc++.so

>I'm not surprised some g++ got in there, some of the libs we use are from open source projects.

It seems like you are saying this backward. The title of your thread says "I'm using g++, not aC++". Unless you mistakenly added -lstdc++?
John Dorak
Advisor

Re: Run time can't find libstdc++.so

I think I may have mislead you. I am building using aCC. That's what threw me when the dependencies started calling out libstdc++.

Here's my current link cmd line:

aCC +DD64 -b -o libfcl.so\
CC_Accessor.o . . . CC_Threads.o fcl.o -L/builds/Prebuilt/HPia64/icu/3.2/lib -L/builds/Prebuilt/HPia64/xml4c5_6_3-hpia64/lib -L/opt/aCC/lib -lxml4c -licuuc -licui18n -licutu -licuio -lCsup -lstd -lstream -lc -ldld -lcl

Regards,
JJD
Dennis Handly
Acclaimed Contributor

Re: Run time can't find libstdc++.so

>That's what threw me when the dependencies started calling out libstdc++.

You'll have to rebuild them.

>Here's my current link cmd line:
aCC +DD64 -b -o libfcl.so -L/opt/aCC/lib

There are no IPF libs here remove it.

-lCsup -lstd -lstream -lc -ldld -lcl

This is completely broken. You have the -AP libs and they are in the wrong order. The correct link order is:
http://docs.hp.com/en/10946/distributing.htm#linking

Or -lstd_v2 -lCsup -lunwind -lm
You can leave off -lm if not needed.

NEVER EVER link with -lc.
And on IPF, -lcl should be -lunwind.