User forums > Using Code::Blocks
CodeBlocks+wxWidgets don't work
freepro:
After i install CodeBlocks and wxWidgets, complite default wxWidgets project error: No found wx/app.h! why?
I need help!
Thank you!
MortenMacFly:
--- Quote from: freepro on November 28, 2012, 08:39:19 am ---After i install CodeBlocks and wxWidgets, complite default wxWidgets project error: No found wx/app.h! why?
--- End quote ---
Because you didn't setup the include folders of your project correctly.
Radek:
WxWidgets headers have not been found. Several posibilitiies:
(1) You do not have wxWidgets headers at all. With wxWidgets 2.8.12, check whether you have a folder /usr/include/wx-2.8 and whether it contains a "wx" folder with bags of headers. If you do not find the folder then install wxWidgets development files.
(2) You have not created a wxWidgets project. If you haven't then you need to add `wx-config --cxxflags` to "other compiler options" and `wx-config --libs` to "linker options". Or create an empty wxWidgets project and add your source files to it.
Be sure that Code Blocks works with wxWidgets perfectly :) If you meet problems then Code Blocks isn't guilty.
freepro:
--- Quote from: Radek on November 28, 2012, 11:26:55 am ---WxWidgets headers have not been found. Several posibilitiies:
(1) You do not have wxWidgets headers at all. With wxWidgets 2.8.12, check whether you have a folder /usr/include/wx-2.8 and whether it contains a "wx" folder with bags of headers. If you do not find the folder then install wxWidgets development files.
(2) You have not created a wxWidgets project. If you haven't then you need to add `wx-config --cxxflags` to "other compiler options" and `wx-config --libs` to "linker options". Or create an empty wxWidgets project and add your source files to it.
Be sure that Code Blocks works with wxWidgets perfectly :) If you meet problems then Code Blocks isn't guilty.
--- End quote ---
Yes, i don't aadd `wx-config --cxxflags` to "other compiler options" and `wx-config --libs` to "linker options". Thank you, i to try!
freepro:
Oh, no!
-------------- Build: Debug in TestGTK ---------------
Compiling: TestGTKApp.cpp
g++: error: wx-config: No such file or directory
g++: error: unrecognized option ‘--cxxflags’
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
What happened?
Navigation
[0] Message Index
[#] Next page
Go to full version