Philip Lawatsch wrote:
> Hans-Werner Hilse wrote:
> 
>>Hi,
>>
>>On Mon, 27 Jun 2005 19:01:01 +0200
>>Philip Lawatsch <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>>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.
>>>[...]
>>>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?
>>
>>
>>LDPATH. Have a look at /etc/env.d/05gcc.
> 
> 
> Hm, strange enough, this never shows up in my environment. Neither with
> gcc3 or gcc4 profiles.
> 
> I'll give it a try as soon as my current compilation finishes.

Nope, didnt help. I did the following

icefox gentoo-64 # gcc-config  1
 * Sw

 * If you intend to use the gcc from the new profile in an already
 * running shell, please remember to do:

 *   # source /etc/profile

icefox gentoo-64 # . /etc/profile
icefox gentoo-64 # gcc-config -E 5
export
PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.0.1-pre20050616:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3:/opt/Acrobat5:/opt/blackdown-jdk-1.4.2.02/bin:/opt/blackdown-jdk-1.4.2.02/jre/bin:/usr/qt/3/bin:/usr/kde/3.4/sbin:/usr/kde/3.4/bin"

icefox gentoo-64 # export
PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.0.1-pre20050616:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3:/opt/Acrobat5:/opt/blackdown-jdk-1.4.2.02/bin:/opt/blackdown-jdk-1.4.2.02/jre/bin:/usr/qt/3/bin:/usr/kde/3.4/sbin:/usr/kde/3.4/bin"

icefox gentoo-64 # export
LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/4.0.1-pre20050616:/usr/lib/gcc/x86_64-pc-linux-gnu/4.0.1-pre20050616/32:/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3:/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/32"


icefox gentoo-64 # ./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)


Any other ideas?

kind regards Philip
-- 
gentoo-user@gentoo.org mailing list

Reply via email to