Author Topic: Help to start  (Read 5592 times)

Offline nime1

  • Multiple posting newcomer
  • *
  • Posts: 22
Help to start
« 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!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Help to start
« Reply #1 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!
(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 nime1

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: Help to start
« Reply #2 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?

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: Help to start
« Reply #3 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
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline nime1

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: Help to start
« Reply #4 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?

Offline nime1

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: Help to start
« Reply #5 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...