Running on (almost) any Linux Distro
Marco Cavallini
wxuser at koansoftware.com
Thu Nov 29 00:27:38 PST 2007
Fulvio Senore ha scritto:
> John Ratliff ha scritto:
>> Fulvio Senore wrote:
>>> I have just learned something about this by trial an error. It seems
>>> that a cause of problems is the runtime library of the compiler.
>>> The current runtime is "libstdc++.so.6" and is not backwards
>>> compatible with older versions of the same library. If I compile a
>>> program in Ubuntu 7.10 it does not run in 6.06. So you should use a
>>> distribution with a rather old version of the compiler.
>>>
>>> Another solution is to use gcc3.3 that should be the last to use
>>> libstdc++.so.5. That library did not change in the last years (I
>>> think) so there should not be compatibility problems. Unluckily the
>>> latest distributions, like Ubuntu 7.10, do not come with
>>> libstdc++.so.5 installed any more, so users might need to install it
>>> in order to run the program.
>> You could try statically linked libstdc++.
>>
>> --John Ratliff
>>
> Yes, thank you for the tip.
>
> Unluckily I have to use a shared object which refers to its own version
> of libstdc++ (it's the Firebird client library) so for me this is not a
> solution. I have not been able to recompile it until now.
>
Fulvio,
a quick and dirty hack that I already used and that should work as well
for you is the following:
1. discover all the dependencies with
$ ldd yourexecutablename
2. look around in your target system what version libstdc++ is
3. create a symbolic link to the libstdc++ file existing in your target
using the name your executable wants
Happy hacking ;-)
Cordiali Saluti / Kindest Regards / mit freundlichen Grüssen
--
Marco Cavallini
Koan s.a.s. - Bergamo - Italia
Embedded and Real-Time Software Engineering
Tel.: (+39) 035-255.235
Fax : (+39) 178-22.39.748
http://www.KoanSoftware.com - http://www.KaeilOS.com
More information about the wx-users
mailing list