Click here to Skip to main content
15,905,776 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
how to include a precompiled header file in CPP. I got an error as follows.

fatal error C1083: Cannot open include file: 'wx.h': No such file or directory

Thanks in advance.

Updated 27-Feb-12 2:38am

It seems that you need to add additional include directory "Project->Properties->C++->General". Search the location of wx.h file and add the location of that directory on "Additional Include Directory" box.
Share this answer
Firstly this has nothing to do with precompiled headers. Secondly you need to add the directory where wx.h is stored into your project's list of include directories.
Share this answer
consider u want to add "example.h" header file in your code...

then your code will be like this..

#include "example.h"

and also try ...

#include "./example.h"

hope it will help...
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