Author Topic: [ERROR LINKER]: cannot find -l-lstdc++  (Read 5353 times)

sparc

  • Guest
[ERROR LINKER]: cannot find -l-lstdc++
« on: December 23, 2007, 09:01:05 am »
Hey Guys,

  Congrats on making one of the best IDE out there...

  I recently upgraded from RC2 to the Nightly Versions and to be honest it has been a wonderful experience... I recently updated to GCC 4.1.2 from www.develer.com/oss/GccWinBinaries and everything went fine except for the following issue...

  I would like to remove stdc++ linkage as I have got stuck into the following error :

Compiling: scmain.cpp
In file included from d:/program files/codeblocks/mingw/bin/../lib/gcc/i686-pc-mingw32/4.1.2/../../../../include/c++/4.1.2/backward/new.h:33,
..... A few warnings here unrelated .....
Compiling: scTestomatic\sctestrunner.cpp
Linking console executable: ..\..\..\sciom\scGalacsy\Debug Win32.scscst.exe
D:\Program Files\CodeBlocks\mingw\bin\ld.exe: cannot find -l-lstdc++
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
1 errors, 7 warnings

  Before posting it here I tried my best to disable it from the IDE or by other means but I have almost given up. I dont use stdc++ code and just want to prevent that getting included by the linker. Could someone please help me out on this issue ?

Thanks in advance,
sparc
« Last Edit: December 23, 2007, 09:32:37 am by sparc »

sparc

  • Guest
Re: [ERROR LINKER]: cannot find -l-lstdc++
« Reply #1 on: December 23, 2007, 09:31:41 am »
Looks like it was an error during the conversion of Visual Studio Project file to CBP. Additional tags "NOINHERIT" seems to be the cause of the additional -l. I guess I just have to do a nostdlib + manual -l of all libs I need.

Thanks,
sparc