Code::Blocks Forums

User forums => Help => Topic started by: mike27 on April 24, 2006, 07:45:22 pm

Title: compiling wxWidgets
Post by: mike27 on April 24, 2006, 07:45:22 pm
I want to compile a wxWidgets project in code blocks, but I want the exe file to contain everything it needs in order to run on a different computer where wxWidgets is not installed. Is it possible?
thanks.
best regards. Mike.
Title: Re: compiling wxWidgets
Post by: Michael on April 24, 2006, 08:12:34 pm
I want to compile a wxWidgets project in code blocks, but I want the exe file to contain everything it needs in order to run on a different computer where wxWidgets is not installed. Is it possible?

Hello,

Yes, it is possible :). Build wxWidgets as static library(ies) and link your application to it(them).

Best wishes,
Michael
Title: Re: compiling wxWidgets
Post by: mike27 on April 24, 2006, 10:08:28 pm
I compiled widgets using this: mingw32-make -f makefile.gcc BUILD=release MONOLITHIC=1 SHARED=0
but I get many linker errors "undefined reference to..." for example: "undefined reference to _imp__wxPanelNameStr".
Do you know how to get rid of these errors?
Mike
Title: Re: compiling wxWidgets
Post by: Michael on April 24, 2006, 11:09:43 pm
Hello,

To build wxWidgets, I usually do as explained here:

http://forums.codeblocks.org/index.php?topic=1701.0

Anyway, if you want a static build, then you should use SHARED=0 (I think it is the default option). And if you do not want unicode, then UNICODE=0.

Best wishes,
Michael