PDA

View Full Version : [SOLVED] /usr/bin/ld: cannot find -lstdc++



ralph_ubuntu
February 12th, 2005, 09:55 AM
Arghh,
I'm trying to compile simias to get ifolder to work.
The problem is, that I always end up with the following error message:

/usr/bin/ld CSPObjectIterator.o CSPropertyIterator.o CSPStore.o CSPStoreObject.o FlaimWrapper.o -oFlaimWrapper.so -L "../../../external/flaim/lxx86/gcc3/release" -lflm -lstdc++ -lpthread -shared
/usr/bin/ld: cannot find -lstdc++
make[3]: *** [FlaimWrapper.so] Fehler 1
make[3]: Verlasse Verzeichnis »/home/ralph/build/simias-1.0.20050209/src/FlaimProvider/FlaimWrapper«
make[2]: *** [all-recursive] Fehler 1
make[2]: Verlasse Verzeichnis »/home/ralph/build/simias-1.0.20050209/src/FlaimProvider«
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis »/home/ralph/build/simias-1.0.20050209/src«
make: *** [all-recursive] Fehler 1

The problem is that libstdc++ is installed and I can't figure out why ld isn't able to find it.

Any ideas?

mendicant
February 13th, 2005, 05:11 AM
I find that I no longer need to add stdc++ in the latest versions of gcc.

ralph_ubuntu
February 13th, 2005, 11:42 AM
I find that I no longer need to add stdc++ in the latest versions of gcc.
My problem is that simias insists on adding this. However, I played around with the Makefile and got it to compile, only to find out that I also couldn't get ifolder to compile.

I think I'll simply wait till someone packages it for debian. ;-D

tturk
February 19th, 2005, 11:21 AM
I've softlinked my libstdc.so file to the one ld is looking for and that did the trick:
sudo ln -s /usr/lib/libstdc++.so.5.0.7 /usr/lib/libstdc++.so
In my case I am using gcc 3.3.5, your file may vary (this is, I guess the official ubuntu compiler).
ifolder and simias compile fine from cvs, but I am still unable to get the SimpleServer work, anyone has managed to make it work?

ralph_ubuntu
February 19th, 2005, 11:27 AM
Great. I'll give it a try and see if I can get ifolder to work now. :-D

mattisking
June 20th, 2005, 12:50 AM
Well, I was able to get everything to compile using that trick and ran iFolder successfully... but of course I don't have a server to connect to and I can't seem to work out SimpleServer.

progressdll
August 2nd, 2005, 02:28 PM
use this howto

http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/*checkout*/ifolder/ifolder/HOWTOs/SimpleServer-Setup-HOWTO.txt

shankerj
September 17th, 2005, 09:17 AM
On running the step: ./autogen.sh --prefix=/opt/simias, I get the error:

Running libtoolize...
./autogen.sh: line 109: libtoolize: command not found

..snip..

checking for ANSI C header files... (cached) yes
./configure: line 4960: AM_PROG_LIBTOOL: command not found
NDOC_CMD=
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for xml2-config... (cached) /usr/bin/xml2-config
configure: creating ./config.status
config.status: error: cannot find input file: Makefile.in
====================

I have autoconf, automake, libxml2. Anything else I am missing?
--Shanker

shankerj
September 20th, 2005, 12:06 PM
I got this to work after installing one-by-one the missing packages. So far, so good. Anyone has a startup script for ubuntu? The one provided in ubuntu.com needs an input argument that I'm not sure how to pass.

dandaman32
April 11th, 2006, 10:25 PM
I have Knoppix 4.0.2 and I'm not sure if Ubuntu has more than one version of GCC but I couldn't compile libmusicbrainz until I moved back to gcc 3.3:

su -c "rm -f /usr/bin/gcc; ln -s /usr/bin/gcc3.3 /usr/bin/gcc"
-dandaman32

despindola
February 17th, 2010, 05:26 PM
The library libstdc++ are well but I solved this problem so:

sudo apt-get install libstdc++6-4.4-dev (In my case i.e. install the dev packages)

;)

ntlam
June 5th, 2010, 06:14 AM
The library libstdc++ are well but I solved this problem so:

sudo apt-get install libstdc++6-4.4-dev (In my case i.e. install the dev packages)

;)

The same with me, libstdc++6-4.3-dev does not solve the problem but libstdc++6-4.4-dev does.

agenthex
October 29th, 2010, 11:31 AM
I'm using Hardy 8.04 LTS, and there is no libstdc++6-4.4-dev package. Does anyone else find it strange that this thread started, died for 5 years, and then got revived?

spezifanta
January 17th, 2012, 02:12 PM
Cant say installing libstdc++6-4.4-dev helped :/

However this helped:

sudo ln -s /usr/lib32/libstdc++.so.6 /usr/lib32/libstdc++.so

Was trying to compile 32bit software with an 64bit environment.

goldencako
December 6th, 2012, 08:45 PM
Cant say installing libstdc++6-4.4-dev helped :/

However this helped:

sudo ln -s /usr/lib32/libstdc++.so.6 /usr/lib32/libstdc++.so

Was trying to compile 32bit software with an 64bit environment.

Don't forget that if you are using gcc 4.6, you need libstdc++6-4.6-dev