Alle 19:01, lunedì 27 giugno 2005, Philip Lawatsch ha scritto:
> Hi,
>
>
> I'd like to use gcc 4 to compile some of my own software but still
> use 3.4 for everything else (all ebuilds etc).
>
> Now I simply emerged gcc4 (its slotted) and then as my user I did
> export the variables a
>
> gcc-config -E x86_64-pc-linux-gnu-4.0.1-pre20050616
>
> printed out.
>
> This way I successfully compiled and linked my programm with gcc4.
>
> Now my problem is that I can't execute it.
>
> If I give it a try I'm getting this error:
>
> [EMAIL PROTECTED] ~/ $ ./foo
> ./foo: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6: version
> `GLIBCXX_3.4.4' not found (required by ./foo)
>
> This is strange since for one its still using something from the
> 3.4.3 profile and also I've just upgraded (with the gcc upgrade) to
> glibc 3.5.
>
> If I switch my profile with gcc-config to the gcc4 profile everything
> works.
>
> So my querstion now is what else gets changed by gcc-config, and is
> there a chance to have the 3.4 gcc profile selected but still run
> programs compiled with gcc 4?
>
>
> kind regards Philip

Have you run the script fix_libtool_files.sh?
After a gcc emerge (if it removes an old version) you must use always 
the command:
fix_libtool_files.sh oldgcc
Try now!
Luigi
-- 
Public key GPG(0x073A0960) on http://keyserver.linux.it/

Attachment: pgpsOf0PqqGhO.pgp
Description: PGP signature

Reply via email to