News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

wx widgets install on win10

Started by themascaratrout, April 03, 2017, 12:24:40 PM

Previous topic - Next topic

themascaratrout

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,

 

cacb

You have to define 'wx' via

Settings -> Global Variables ....

The 'base' value should typically point to the root folder of your wxWidgets installation

themascaratrout

#2
Hi cacb thanks for that.


now getting a dialog warning tho - attached
(I've tried 3.0.2    & 3.1.0)

stahta01

Did you build a Release type build of wxWidgets?

Did you build any type of build of wxWidgets?

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

themascaratrout

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

stahta01

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

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

themascaratrout

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






ollydbg

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.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

themascaratrout

Sorted, I moved the compiler and widgets into DDrive, worked straight off.

Thanks all