LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-21-2004, 05:19 PM   #1
develinux
LQ Newbie
 
Registered: Apr 2004
Location: FRANCE
Distribution: Mdk 9.2
Posts: 2

Rep: Reputation: 0
g++ error lstdc++


Hello,

I have this error when I try to compil c++ files with g++ :

---------------------------------------------------------------------------
g++ -static -g -o demon *.o libcrypto.so libdetect.so -L/usr/lib -L/usr/local/lib -lsqlplus -lmysqlclient -lncurses
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [demon] Erreur 1
---------------------------------------------------------------------------

Here is my makefile :

---------------------------------------------------------------------------
demon : demon.o Cmysql.o Cdetection.o
g++ -static -g -o demon *.o libcrypto.so libdetect.so -L/usr/lib -L/usr/local/lib -lsqlplus -lmysqlclient -lncurses

demon.o : demon.cpp
g++ -DHAVE_CONFIG_H -I. -I/home/u02/mysql++-1.7.9 -I.. -I/sql
plusint -I/home/u02/mysql++-1.7.9/sqlplusint -I/usr/include/mysql -g
-O2 -Wall -c demon.cpp

Cmysql.o : Cmysql.cpp Cmysql.h
g++ -DHAVE_CONFIG_H -I. -I/home/mysql++-1.7.9 -I.. -I/sql
plusint -I/home/u02/mysql++-1.7.9/sqlplusint -I/usr/include/mysql -g
-O2 -Wall -c Cmysql.cpp

Cdetection.o : Cdetection.cpp Cdetection.h
g++ -Wall -c Cdetection.cpp
---------------------------------------------------------------------------

I search the file libstc++ but I just find this ones :
/usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
/usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
/usr/lib/libstdc++-libc6.1-1.so.2
/usr/lib/libstdc++-libc6.2-2.so.3
/usr/lib/libstdc++.so.2.7.2
/usr/lib/libstdc++.so.2.7.2.8
/usr/lib/libstdc++.so.2.8
/usr/lib/libstdc++.so.2.8.0
/usr/lib/libstdc++.so.2.9
/usr/lib/libstdc++.so.2.9.dummy
/usr/lib/libstdc++.so.6.0.0
/usr/lib/libstdc++.so.6

but there is no file named libstdc++.so or libstdc++.a

Thanks for your help
Bye

clean :
rm demon *.o
 
Old 04-22-2004, 06:44 AM   #2
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
Try as root running ldconfig
That tends to fix most library issues of this kind.
 
Old 04-22-2004, 12:49 PM   #3
ofada
Member
 
Registered: Jan 2004
Posts: 32

Rep: Reputation: 15
Rsult of ldconfig :

ldconfig: /usr/lib/libsqlplus.so.1 is not a
 
Old 04-22-2004, 12:50 PM   #4
ofada
Member
 
Registered: Jan 2004
Posts: 32

Rep: Reputation: 15
sorry,
result of the ldconfig :

ldconfig: /usr/lib/libsqlplus.so.1 is not a symbolic link

What can I do?
 
  


Reply



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
updating new installation of 9.3 ERROR...ERROR...ERROR Morbid SUSE / openSUSE 3 08-15-2005 11:22 PM
qt compile cannot find lstdc++ poboy975 Linux - Software 3 01-08-2005 01:03 PM
Compile errors involving lstdc++ kmullin Programming 0 05-25-2004 01:21 PM
Installing Iperf >>cannot find -lstdc++!!!! RKris Linux - Software 1 12-16-2002 12:26 PM
Qt and lstdc++ Half_Elf Linux - Software 2 04-04-2002 02:20 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:20 AM.

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