Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: /usr/bin/ld: cannot find -lstdc++

  1. #1
    ralph_ubuntu Guest

    /usr/bin/ld: cannot find -lstdc++

    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?

  2. #2
    Join Date
    Jan 2005
    Beans
    346

    Re: /usr/bin/ld: cannot find -lstdc++

    I find that I no longer need to add stdc++ in the latest versions of gcc.

  3. #3
    ralph_ubuntu Guest

    Re: /usr/bin/ld: cannot find -lstdc++

    Quote Originally Posted by mendicant
    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

  4. #4
    Join Date
    Feb 2005
    Beans
    10

    Re: /usr/bin/ld: cannot find -lstdc++

    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?

  5. #5
    ralph_ubuntu Guest

    Re: /usr/bin/ld: cannot find -lstdc++

    Great. I'll give it a try and see if I can get ifolder to work now.

  6. #6
    Join Date
    Nov 2004
    Location
    Charlotte, NC
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: /usr/bin/ld: cannot find -lstdc++

    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.

  7. #7
    Join Date
    Jul 2005
    Beans
    1

    Re: /usr/bin/ld: cannot find -lstdc++


  8. #8
    Join Date
    Sep 2005
    Beans
    2

    Re: /usr/bin/ld: cannot find -lstdc++

    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

  9. #9
    Join Date
    Sep 2005
    Beans
    2

    Re: /usr/bin/ld: cannot find -lstdc++

    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.

  10. #10

    Re: /usr/bin/ld: cannot find -lstdc++

    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:
    Code:
    su -c "rm -f /usr/bin/gcc; ln -s /usr/bin/gcc3.3 /usr/bin/gcc"
    -dandaman32

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •