Re: can't run gcc 4.5.3/4.6.0 under ubuntu 11.04

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 18 May 2011, Klaus Rudolph wrote:

after I update my ubuntu system to 11.04 I got some strange errors.

Under 10.04 I compiled 4.5.3 and 4.6.0 without any problems and both versions work as expected.

After update to ubuntu 11.04 I got always errors while linking with these compilers:
krud@mauersegler:~/test/c++/compile_ubuntu_11.04$ /opt/_linux-gnu_4.5.3/bin/g++ main.cpp
/opt/_linux-gnu_4.5.3/bin/../lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lm
/opt/_linux-gnu_4.5.3/bin/../lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status

Yes, Ubuntu moved things around a bit for multiarch support.

/opt/linux-gnu_4.5.3/i686-pc-linux-gnu/bin/ld: cannot find -lc

Does it work better with the system ld?

--
Marc Glisse


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux