User forums > Using Code::Blocks

Problem with wxWidgets

(1/3) > >>

calande:
Hello, I'm using Code::Blocks 1.0 and wxWidgets 2.6.2 on Windows XP.

But I'm having a few compilation errors:

Here's the 1st one:

L.5: wx/wx.h - No such file or directory

Any idea?
Thanks,

Charles.

PS: The full code is here.

Pecan:
In the "build options" you need a compiler include
for \..\wxWidgets-262\include\wx\wx.h (wherever you put it.)

If you are using a nightly build, or an SVN version of CodeBlocks
you should just set this include via the menu item Setting/Global Variables/wx
You might also set the cb global variable item.



In future, could you please mention in your messages the full
CodeBlocks version you're using. I'm only guessing that you're
using nightly build because you mentioned wxWidgets 2.6.2.
You can find this info in the menu item Help/About/Information.


pecan

calande:
Thank you Pecan, I'm using 1.0 rc2.
Do you know why sometimes the option "build options" is greyed out?

Anyway, under "Build options > Custom variables", I added:

WX_DIR=C:\wxWidgets-2.6.2

I think this solved my original problem. Now, here's another error message:

C:\wxWidgets-2.6.2\include\wx\platform.h line 190 \wx\setup.h: No such file or directory

I checked out in the directory, and indeed the setup.h file is not there, instead there are: setup_inc.h and setup_redirect.h
Any idea?
Thanks,

Charles.

sethjackson:

--- Quote from: calande on March 04, 2006, 05:24:52 pm ---Thank you Pecan, I'm using 1.0 rc2.
Do you know why sometimes the option "build options" is greyed out?

Anyway, under "Build options > Custom variables", I added:

WX_DIR=C:\wxWidgets-2.6.2

I think this solved my original problem. Now, here's another error message:

C:\wxWidgets-2.6.2\include\wx\platform.h line 190 \wx\setup.h: No such file or directory

I checked out in the directory, and indeed the setup.h file is not there, instead there are: setup_inc.h and setup_redirect.h
Any idea?
Thanks,

Charles.

--- End quote ---

Need to put

$(WX_DIR)\lib\gcc_dll\msw or $(WX_DIR)\lib\gcc_lib\msw (it depends on wether you have a DLL build or not. gcc_dll for DLL build, gcc_lib for static build)

in compiler options. Oh and throw RC2 away. Get a nighlty from here.

http://forums.codeblocks.org/index.php?board=20.0

calande:
Thank you. I wasn't able to install the nightly build, I get the following error message:

"This application has failed to start because wxmsw26u_gcc_cb.dll was not found. Re-installing the application may fix this."

Problem is there is no installer...  :?

BTW, I am using mingw, would this be a problem? Does GCC work on Windows BTW? (Sorry, I've only used GCC on FreeBSD...)
Thanks again,


Charles.

Navigation

[0] Message Index

[#] Next page

Go to full version