Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-08-2006, 01:38 PM   #1
LQ Newbie
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
linker error: ld: cannot find -lstdc++

When trying to link as follows:
g++ -static -O3 -I -I/home/ofanan/gmp-4.1.4 -I. -DGMP -L/usr/lib -L/home/ofanan/gmp-4.1.4 cdd_r.o cddrevs_r.o cddio_r.o cddarith_r.o cddpivot_r.o setoper.o gmp_init.o Integer.o Rational.o -o cddr+ -lstdc++ -lgmp

I get the error:
/usr/bin/ld: cannot find -lstdc++
though I indeed have the following libraries under /usr/lib:**
And I set within the Makefile:
LIBDIR = /usr/lib
I have also /usr/lib found in PATH and LIB variables (is it necessary, BTW?)
Actually, I found a few more libstdc++ libraries in other directories, which also should be recognized (I think) by g++.
I use gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ld linker error Ankit mittal Programming 2 09-30-2005 08:40 AM
qt compile cannot find lstdc++ poboy975 Linux - Software 3 01-08-2005 02:03 PM
g++ error lstdc++ develinux Programming 3 04-22-2004 01:50 PM
Linker Error dim79 Programming 2 06-28-2003 10:53 AM
Installing Iperf >>cannot find -lstdc++!!!! RKris Linux - Software 1 12-16-2002 01:26 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration