User forums > Using Code::Blocks

wxWidgets 2.8.6 can't find setup.h

<< < (2/2)

kisoft:

--- Quote from: Knx on November 16, 2007, 03:47:07 pm ---
--- Code: ---$(#WX.lib)\gcc_dll$(WX_CFG)\msw$(WX_SUFFIX)
--- End code ---
Didn't work.
But setting to

--- Code: ---C:\cb\wx\lib\gcc_dll\mswu
--- End code ---
worked.

--- End quote ---

For my example you must set Global variable: "wx" to "C:\cb\wx" analogically variable "cb".
You can do set this variables in C::B, do search menu "Settings/Global variables..."


--- Quote from: Knx on November 16, 2007, 03:47:07 pm ---BUT...
new error:

--- Code: ---ld.exe||cannot find -lwxmsw_core|
--- End code ---

--- End quote ---

For example, your project was created with wrong options. With monolitic version wxWidgets linker being searched libwxmsw28u library (you can see "-lmsw28u" vs "-lwxmsw_core"). You can see your wxWidgets library name in C:\cb\wx\lib\gcc_dll directory. I have "libwxmsw28u.a" file for monolitic type (used for build C::B).
I think you created your project before wxWidgets building or wrongly answered on wizard questions.

Good luck!

Knx:
I've clean wx, and rebuild.
Start a new project, but this time it says that can't find Release configuration $(#wx) is the same as before


--- Code: ---mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release clean
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release
--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version