User forums > Using Code::Blocks

Building a standalone exe

<< < (2/4) > >>

robl:
Thanks Tim, I didn't actually build wxWidgets myself - I used wxPack which comes with pre-compiled libraries.  I actually followed the advice that is on the CodeBlocks wiki - (link on my first post).  Do you think it's worth mentioning on the wiki that the version of the compiler that ships with Code::Blocks doesn't work with the libraries in wxPack? Or have I got the wrong end of the stick? I couldn't see an option to change the version in CodeBlocks - Have to admit this is all new to me i.e. I just thought the MinGW GCC compiler would work.  Every day is a school day!

Rob

oh...just had a touch of the RTFM's - bottom line of wiki FAQs =

"I get errors like "undefined reference to _Unwind_*"

wxWidgets was built with a different version of GCC than the one you're currently using. You need to rebuild wxWidgets with the same version of GCC that you use to compile your program.

I guess codeblocks is more up to date with its version of minGW GCC compiler than the one used to build in wxPack

robl:
.....and so the pain continues...

All is good on my coding machine - I compiled wxWidgets with the static, monolithic options. And the executable runs on this machine.  However trying to run it on other pc's (i.e. with no code::blocks, gcc, wx etc) it bombs out with "application failed to start because mingwm10.dll doesn't exist - i.e. the mingw gcc dll has failed to be linked into the .exe.  It must be possible to produce an .exe for distribution???? But how? Sorry for my ignorance! and cheers for any help

Rob

stahta01:
Learn how to use the newest TDM MinGW GCC; I believe there is a option to do a static link of the C Run-time.
Note, I am not sure of the above. Read it in a post on this site or maybe TDM site, cboard, or another site.
You really need to post questions about the compilers on a better site than this site; which is to support Code::Blocks not Compilers.

Tim S.

oBFusCATed:
Also learn how to use google or any other search engine ----> http://lmgtfy.com/?q=static+link+mingwm10.dll  :P

robl:
Fair enough! 

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version