News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

[ERROR LINKER]: cannot find -l-lstdc++

Started by sparc, December 23, 2007, 09:01:05 AM

Previous topic - Next topic

sparc

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

sparc

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