News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

C::B 10.05 and gcc-4.5.0, libstdc++.a not linked

Started by spectrum, January 11, 2011, 11:22:38 AM

Previous topic - Next topic

spectrum

Hi all,

i installed C::B 10.05, that was bringing inside MINGW and gcc 4.5.0.

After i compiled a c++ applications, once linking, there are many undefined references to std c++ library functions.

I tought that the linking with the std c++ library should be done automatically when g++ is used. And this was working with previuos C::B version.

Any help is appreciated.
Regards,
angelo 

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

spectrum

#2
sorry,

but this answer solved nothing.

I have unresolved externals errors to std c++ library functions, due to libstdc++.a not linkrd, and this with the previous version of code::blocks+mingw was not happening.

Enabling compiler log, libstdc++.a is clearly not linked. Adding manually the library in the project linker command, errors disappear.

regards
angelo

oBFusCATed

If the commands used by C::B to compile your code are correct, you have a broken compiler installation, so this is not a C::B problem.

The C::B team is not responsible for the compiler you use, even if there is a bundle (C::B + mingw) downloadable on the site.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Jenna

If you have multiple installations of MinGW, make sure, that none of them is in \MinGW on any of your drives.