Code::Blocks Forums
User forums => Help => Topic started by: themascaratrout on April 03, 2017, 12:24:40 pm
-
Hi All,
First post, new to programming. After some research, I've chosen code::blocks on Windows 10 as my ide for c++, (with MinGW) I'm having some trouble getting it set up...
I've been trying to compile wxWidgets but on starting a new project, global variable editor dialog box comes up with this message
"in the currently active set, Code::Blocks does not know the global compiler variable "wx". Please define it."
I can't find any previous searches with this exact issue so I'd appreciate any pointers :)
Thanks for any replies,
-
You have to define 'wx' via
Settings -> Global Variables ....
The 'base' value should typically point to the root folder of your wxWidgets installation
-
Hi cacb thanks for that.
now getting a dialog warning tho - attached
(I've tried 3.0.2 & 3.1.0)
-
Did you build a Release type build of wxWidgets?
Did you build any type of build of wxWidgets?
Tim S.
-
Hi Tim,
Yes it was a release build, I typed in to cmd:
mingw32-male -f make file.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1
Thanks for your help with this
-
What options did you use in the CB wxWidgets Wizard?
The options need to match the build of wxWidgets.
http://wiki.codeblocks.org/index.php/WxWindowsQuickRef (http://wiki.codeblocks.org/index.php/WxWindowsQuickRef)
Tim S.
-
basically all by now :)
wxWidgets 3.0.x is the only one I haven't changed...
attached is latest dialog :(
Thanks for your help with this
-
I don't see much errors in the image shot.
It said you don't have a "debug" version of wxWidgets library. But you can still go on by click YES.
You can build a "debug" version of your application which links against a "release" version of wxWidgets library. This should work fine.
-
Sorted, I moved the compiler and widgets into DDrive, worked straight off.
Thanks all