Click here to Skip to main content
15,880,427 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Even though Code Blocks has a template for wxWidgets, I’d like to start my application from zero. So, I created an application using the ‘Console Application’ template and added the ‘#include <wx/window.h>’ as the first step, as suggested here. But I get an error saying :
D:\Dev\Projects\CodeBlocks\wx001\main.cpp:2:23: fatal error: wx/window.h: No such file or directory #include <wx/window.h>
I know that this is not a wx problem, since the ‘wxWidgets Template’ does work, but CB does not have a mailing list to post this question and, thus, I hope someone here can help me set up the project from zero, or point out to me a site that provides the solution to this problem.

I added this settings:
Linker settings = libwxmsw30ud.a
Search Directory -> Compiler = $(#wx)\lib\gcc_dll\mswud
Search Directory -> Linker = $(#wx)\lib\gcc_dll
Search Directory -> Resource compiler = $(#wx)\lib\gcc_dll\mswud

but, still, no cheese Sad smile

Thanks
Posted
Comments
[no name] 4-Jun-15 10:28am    
http://forums.codeblocks.org/
Richard MacCutchan 4-Jun-15 10:38am    
So find out where that file is located and add it's parent directory to your compiler's include list.

1 solution

Some search path for the include is missing. At first search the file "window.h" on your hard disk. If found add this sub path to your compiler path else install the SDK.

Maybe removing the "wx/ part solves the problem?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900