Author Topic: C::B 10.05 and gcc-4.5.0, libstdc++.a not linked  (Read 3915 times)

Offline spectrum

  • Multiple posting newcomer
  • *
  • Posts: 16
C::B 10.05 and gcc-4.5.0, libstdc++.a not linked
« on: January 11, 2011, 11:22:38 am »
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 

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline spectrum

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: C::B 10.05 and gcc-4.5.0, libstdc++.a not linked
« Reply #2 on: January 14, 2011, 01:13:15 pm »
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
« Last Edit: January 14, 2011, 01:14:50 pm by spectrum »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C::B 10.05 and gcc-4.5.0, libstdc++.a not linked
« Reply #3 on: January 14, 2011, 01:36:23 pm »
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!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: C::B 10.05 and gcc-4.5.0, libstdc++.a not linked
« Reply #4 on: January 14, 2011, 08:19:35 pm »
If you have multiple installations of MinGW, make sure, that none of them is in \MinGW on any of your drives.