forlano Messages: 1185 Registered: March 2006 Location: Italy
Senior Contributor
Hello,
when I build my application under Ubuntu (BLITZ + Shared libs)theIDE automatically use libstdc++6 although I've also libstdc++5. Some users using Suse and libstdc++5 report to be not able to run the program. They suggested me to link against the old libstdc++5 to increase the portability. How to do it? (Please consider that Blitz + All static option doesn't work and the only build method that works is only BLITZ + Shared libs).
forlano Messages: 1185 Registered: March 2006 Location: Italy
Senior Contributor
forlano wrote on Tue, 04 July 2006 09:19
Hello,
when I build my application under Ubuntu (BLITZ + Shared libs)theIDE automatically use libstdc++6 although I've also libstdc++5. Some users using Suse and libstdc++5 report to be not able to run the program. They suggested me to link against the old libstdc++5 to increase the portability. How to do it? (Please consider that Blitz + All static option doesn't work and the only build method that works is BLITZ + Shared libs).
Thank you,
Luigi
Another solution is maybe to link statically the libstdc++6. But how to tell to theIDE to perform this task? Any idea?
fudadmin Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
Ultimate Contributor Administrator
maybe try to have a look at "Package organizer" -> "Core" package -> Solaris - Link options.
What if to make something similar for you project?
Personally, I would experiment by trying to prevent linking the "bad" library (or e.g move to another dir) for any other packages involved and/or add Link option for your package.
But this is just an idea and I have little Linux experience...
I believe that the only safe way how to link different stdlibc++ is to use appropriate GCC version.... (that is why there is "compiler name" in BM setup).