Code::Blocks Forums

User forums => Help => Topic started by: nime1 on September 04, 2010, 11:10:27 pm

Title: Help to start
Post by: nime1 on September 04, 2010, 11:10:27 pm
Hello,
After long fighting and reading I get codeblocks worx in windows with wxSmith.
But I missed something to make exe files.

During compiling and linking I get many warnings like this:
Code

-------------- Build: Release in aab ---------------

Compiling: aabMain.cpp
Compiling: aabApp.cpp
Linking executable: bin\Release\aab.exe
C:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_lib/libwxmsw28_core.a(corelib_menucmn.o):menucmn.cpp:(.text+0xbc0): undefined reference to `_Unwind_Resume'
C:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_lib/libwxmsw28_core.a(corelib_menucmn.o):menucmn.cpp:(.text+0xc59): undefined reference to `_Unwind_Resume'
C:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_lib/libwxmsw28_core.a(corelib_menucmn.o):menucmn.cpp:(.text+0xcf5): undefined reference to `_Unwind_Resume'
C:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_lib/libwxmsw28_core.a(corelib_menucmn.o):menucmn.cpp:(.text+0xda6): undefined reference to `_Unwind_Resume'
C:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_lib/libwxmsw28_core.a(corelib_menucmn.o):menucmn.cpp:(.text+0xdce): undefined reference to `_Unwind_Resume'
C:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_lib/libwxmsw28_core.a(corelib_menucmn.o):menucmn.cpp:(.text+0xe7a): more undefined references to `_Unwind_Resume' follow

Of course, this is only a part but others are similar...

Please help on how to fix this or what to do to compile properly.
Thanx!
Title: Re: Help to start
Post by: oBFusCATed on September 04, 2010, 11:20:48 pm
Probably your app and the wxWidgets lib you're using were compiled with different compilers.
Probably you're mixing DW2 and SJLJ, which is known to not work.
Recompile you wxWidgets or try exactly the same compiler used to compile wxWidgets.

p.s. undefined reference is not a warning, but an error!
Title: Re: Help to start
Post by: nime1 on September 04, 2010, 11:34:24 pm
Thanx obfuscated.
What to do instead of recompiling wxWidgets? For now this is sciencefiction for me.
I use wxWidgets from wxPack.
Can I simple change something in CB settings and what if I dont know what is compiled with what?
Title: Re: Help to start
Post by: TDragon on September 05, 2010, 01:56:46 am
The version of wxPack you're using was compiled with a DW2 version of GCC, probably TDM-GCC 4.4.1-dw2. You need to either
Title: Re: Help to start
Post by: nime1 on September 05, 2010, 07:13:42 am
Hello TDragon, thanx for helping...
In meantime I try all the compilers listed in C:B compiller settings :) combo, and all crashes in linking phase.

OK,
I think I have successfully installed 10.05 version of codeblocks and now I updated my Path with C:\Program Files\CodeBlocks\MinGW\bin what gives me message minGW32-gcc: no input files, like described on your link, from anywhere on dos prompt.
How I'm not able to recompile whole wxWidgets can you recommend me which exact version of wxWidgets I should download and from where to be compatibile with my codeblocks?
Title: Re: Help to start
Post by: nime1 on September 05, 2010, 02:13:03 pm
Actually, I compiled regarding instructions in QuickRef and I can make exe now, Thank you guys.
But here are still some errors at the end of compiling becase of which I can't compile to "debug" target, just to "release".
Would this be a problem for later working?

I have a picture of screen with error but don't know how to attach...