Author Topic: Error using Codeblocks Svn 6271 with MinGW GCC 4.5  (Read 4415 times)

Offline xeon111

  • Single posting newcomer
  • *
  • Posts: 2
Error using Codeblocks Svn 6271 with MinGW GCC 4.5
« on: June 11, 2010, 12:01:44 pm »
Well,
 The thing is that a few days ago i installed MINGW GCC 4.5.
Coming to the point
When i compile and link C++ files on command line using g++ or Mingw-g++ They work like a charm.
But when i use CB to do the same it gives me a list of errors.
It should be noted that When compiling C files CB Works.

I am installing CB 10.05  I hope it fixes this.

Here are those list of errors that CB is giving me

Compiling: C:\Documents and Settings\Administrator\Desktop\para.cpp
Linking console executable: C:\Documents and Settings\Administrator\Desktop\para.exe
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSoC1EPSt15basic_streambufIcSt11char_traitsIcEE[std::basic_ostream<char, std::char_traits<char> >::basic_ostream(std::basic_streambuf<char, std::char_traits<char> >*)]+0x3e): undefined reference to `_Unwind_SjLj_Register'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSoC1EPSt15basic_streambufIcSt11char_traitsIcEE[std::basic_ostream<char, std::char_traits<char> >::basic_ostream(std::basic_streambuf<char, std::char_traits<char> >*)]+0xb3): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSoC1EPSt15basic_streambufIcSt11char_traitsIcEE[std::basic_ostream<char, std::char_traits<char> >::basic_ostream(std::basic_streambuf<char, std::char_traits<char> >*)]+0xfa): undefined reference to `_Unwind_SjLj_Resume'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSoC2EPSt15basic_streambufIcSt11char_traitsIcEE[std::basic_ostream<char, std::char_traits<char> >::basic_ostream(std::basic_streambuf<char, std::char_traits<char> >*)]+0x40): undefined reference to `_Unwind_SjLj_Register'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSoC2EPSt15basic_streambufIcSt11char_traitsIcEE[std::basic_ostream<char, std::char_traits<char> >::basic_ostream(std::basic_streambuf<char, std::char_traits<char> >*)]+0x81): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSoC2EPSt15basic_streambufIcSt11char_traitsIcEE[std::basic_ostream<char, std::char_traits<char> >::basic_ostream(std::basic_streambuf<char, std::char_traits<char> >*)]+0xa3): undefined reference to `_Unwind_SjLj_Resume'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5tellpEv[std::basic_ostream<char, std::char_traits<char> >::tellp()]+0x3d): undefined reference to `_Unwind_SjLj_Register'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5tellpEv[std::basic_ostream<char, std::char_traits<char> >::tellp()]+0xd7): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5tellpEv[std::basic_ostream<char, std::char_traits<char> >::tellp()]+0x119): undefined reference to `_Unwind_SjLj_Resume'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5seekpExSt12_Ios_Seekdir[std::basic_ostream<char, std::char_traits<char> >::seekp(long long, std::_Ios_Seekdir)]+0x3d): undefined reference to `_Unwind_SjLj_Register'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5seekpExSt12_Ios_Seekdir[std::basic_ostream<char, std::char_traits<char> >::seekp(long long, std::_Ios_Seekdir)]+0x6a): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5seekpExSt12_Ios_Seekdir[std::basic_ostream<char, std::char_traits<char> >::seekp(long long, std::_Ios_Seekdir)]+0x13d): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5seekpExSt12_Ios_Seekdir[std::basic_ostream<char, std::char_traits<char> >::seekp(long long, std::_Ios_Seekdir)]+0x17a): undefined reference to `_Unwind_SjLj_Resume'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5seekpESt4fposIiE[std::basic_ostream<char, std::char_traits<char> >::seekp(std::fpos<int>)]+0x3d): undefined reference to `_Unwind_SjLj_Register'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5seekpESt4fposIiE[std::basic_ostream<char, std::char_traits<char> >::seekp(std::fpos<int>)]+0x6e): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5seekpESt4fposIiE[std::basic_ostream<char, std::char_traits<char> >::seekp(std::fpos<int>)]+0x156): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5seekpESt4fposIiE[std::basic_ostream<char, std::char_traits<char> >::seekp(std::fpos<int>)]+0x19f): undefined reference to `_Unwind_SjLj_Resume'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5flushEv[std::basic_ostream<char, std::char_traits<char> >::flush()]+0x3a): undefined reference to `_Unwind_SjLj_Register'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5flushEv[std::basic_ostream<char, std::char_traits<char> >::flush()]+0x7e): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5flushEv[std::basic_ostream<char, std::char_traits<char> >::flush()]+0xbb): undefined reference to `_Unwind_SjLj_Resume'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5flushEv[std::basic_ostream<char, std::char_traits<char> >::flush()]+0xed): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc[std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)]+0x37): undefined reference to `_Unwind_SjLj_Register'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc[std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)]+0x187): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc[std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)]+0x28d): undefined reference to `_Unwind_SjLj_Resume'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c[std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char)]+0x3d): undefined reference to `_Unwind_SjLj_Register'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c[std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char)]+0x197): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c[std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char)]+0x238): undefined reference to `_Unwind_SjLj_Resume'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5writeEPKci[std::basic_ostream<char, std::char_traits<char> >::write(char const*, int)]+0x3a): undefined reference to `_Unwind_SjLj_Register'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5writeEPKci[std::basic_ostream<char, std::char_traits<char> >::write(char const*, int)]+0x74): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5writeEPKci[std::basic_ostream<char, std::char_traits<char> >::write(char const*, int)]+0x176): undefined reference to `_Unwind_SjLj_Resume'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEPSt15basic_streambufIcSt11char_traitsIcEE[std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_streambuf<char, std::char_traits<char> >*)]+0x34): undefined reference to `_Unwind_SjLj_Register'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEPSt15basic_streambufIcSt11char_traitsIcEE[std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_streambuf<char, std::char_traits<char> >*)]+0xbe): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEPSt15basic_streambufIcSt11char_traitsIcEE[std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_streambuf<char, std::char_traits<char> >*)]+0x1d6): undefined reference to `_Unwind_SjLj_Resume'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEPKv[std::basic_ostream<char, std::char_traits<char> >::operator<<(void const*)]+0x37): undefined reference to `_Unwind_SjLj_Register'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEPKv[std::basic_ostream<char, std::char_traits<char> >::operator<<(void const*)]+0x167): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEPKv[std::basic_ostream<char, std::char_traits<char> >::operator<<(void const*)]+0x21c): undefined reference to `_Unwind_SjLj_Resume'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEe[std::basic_ostream<char, std::char_traits<char> >::operator<<(long double)]+0x37): undefined reference to `_Unwind_SjLj_Register'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEe[std::basic_ostream<char, std::char_traits<char> >::operator<<(long double)]+0x177): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEe[std::basic_ostream<char, std::char_traits<char> >::operator<<(long double)]+0x22c): undefined reference to `_Unwind_SjLj_Resume'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEd[std::basic_ostream<char, std::char_traits<char> >::operator<<(double)]+0x37): undefined reference to `_Unwind_SjLj_Register'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEd[std::basic_ostream<char, std::char_traits<char> >::operator<<(double)]+0x167): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEd[std::basic_ostream<char, std::char_traits<char> >::operator<<(double)]+0x21c): undefined reference to `_Unwind_SjLj_Resume'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEy[std::basic_ostream<char, std::char_traits<char> >::operator<<(unsigned long long)]+0x37): undefined reference to `_Unwind_SjLj_Register'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEy[std::basic_ostream<char, std::char_traits<char> >::operator<<(unsigned long long)]+0x177): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEy[std::basic_ostream<char, std::char_traits<char> >::operator<<(unsigned long long)]+0x22c): undefined reference to `_Unwind_SjLj_Resume'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEx[std::basic_ostream<char, std::char_traits<char> >::operator<<(long long)]+0x3a): undefined reference to `_Unwind_SjLj_Register'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEx[std::basic_ostream<char, std::char_traits<char> >::operator<<(long long)]+0x1a7): undefined reference to `_Unwind_SjLj_Unregister'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEx[std::basic_ostream<char, std::char_traits<char> >::operator<<(long long)]+0x302): undefined reference to `_Unwind_SjLj_Resume'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEb[std::basic_ostream<char, std::char_traits<char> >::operator<<(bool)]+0x3e): undefined reference to `_Unwind_SjLj_Register'
C:\MinGW\lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEb[std::basic_ostream<char, std::char_traits<char> >::operator<<(bool)]+0x177): undefined reference to `_Unwind_SjLj_Unregister'

Online stahta01

  • Lives here!
  • ****
  • Posts: 6508
    • My Best Post
Re: Error using Codeblocks Svn 6271 with MinGW GCC 4.5
« Reply #1 on: June 11, 2010, 03:57:38 pm »
IIRC, MinGW GCC 4.5 is an DW2 build; you can NOT mix it with SJLJ Libraries or object files!!
Please verify you are also using the correct MinGW DLLs.

Turn on full compiler logging; if you do not know how read the Wiki FAQs.
You might be using two different compiler installations.

NOTE: If you have two different MinGW GCC Installed neither can use "C:\MinGW" where C can be any drive that is the current drive during building. Reason is most MinGW GCC builds are hard code to look in folder :\MinGW for some info if it exists.

Tim S.
« Last Edit: June 11, 2010, 07:36:39 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline xeon111

  • Single posting newcomer
  • *
  • Posts: 2
Re: Error using Codeblocks Svn 6271 with MinGW GCC 4.5
« Reply #2 on: June 12, 2010, 02:32:13 pm »
I do have 2 GCC installations.
one for devcpp and one MingW
And also I updated the core g++ and gcc 4.5 and all runtime libraries required on an existing Mingw (3.4.5) installation.
Could this have anything to do with it
:S

Edit 1:
I feel like such a DUMBASS at the moment.
i deliberately added (thinking i better tell CB this) c:\mingw\include in the compilers search directory and it was added in the command line when i turned on full compiler logging.
Now when it is removed, Everything is working.
But still it doesn't explain why c programs were working with CB.

Thanks for Your help
« Last Edit: June 12, 2010, 02:44:40 pm by xeon111 »