User forums > Using Code::Blocks

wxwidgets problems

(1/2) > >>

leg0las:
Hi code:blockers!

First of all I want to admit, that I am a noob and my mother tounge isn't English, so pls be not to hard with me :)

I have a problem with creating a wxwidgets project. I want my programm to run on different PC's without installing wxwidgets on all PC's.
I have read, that somehow I can make the wxwidgets static and then it would run on every pc only with the .exe file. But I couldn't find how to do this. (2 days searching!!!)
Also if I start the .exe in the bin\release folder there is the message "The application couldn't start, because 'wxmsw28u_gcc.dll" was not found."

system:
Windows XP SP2
Code::Blocks 8.02
wxwidgets 2.8

I know that a lot of you will think, that I'm stupid and not able to search, but I really searched in google, yahoo and the search-Funktion in this forum and couldn't find the solution after 2 days!!

It would be a really great help, if somebody could write an answer and tell me how to do..

Thx Leg0las

TDragon:
Follow the wxWindowsQuickRef, but use SHARED=0 when building wxWidgets and make sure the "Use wxWidgets DLL" box in the wizard is not checked. You may have to add additional wxWidgets libraries in your project's build options to avoid "undefined reference" errors.

leg0las:
Thanks for your help!

But as you said there are now about 50 'undefined reference' errors. I tried to add libraries to the project but the errors are still there.
They are all lokking the same:
"C:\SourceCode\Libraries\wxWidgets2.8\Lib\libwxmsw28u.a (monolib_string.o):string.cpp:(.text+0xf0d)   undefined reference to '__Unwind Resume'"

I did:
Project->Build options...->Linker Settings->Add->"C:\SourceCode\Libraries\wxWidgets2.8\Lib\libwxmsw28u.a"
But it didn't work. Was the same.

Please help me a second time. I know this is easy for you, but I'm only a beginner :)

Thx

TDragon:
"__Unwind_*" undefined references crop up when you try to mix object files compiled with two different versions of GCC. You probably need to rebuild wxWidgets.

leg0las:
Ok i will try it!

Thank you  :)

Navigation

[0] Message Index

[#] Next page

Go to full version