包括预编译的头文件-编译问题CPP [英] Including precompiled header file - compilation problem CPP

查看:89
本文介绍了包括预编译的头文件-编译问题CPP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何在CPP中包含预编译的头文件.我收到如下错误.



严重错误C1083:无法打开包含文件:"wx.h":没有此类文件或目录

提前谢谢.

问候,
Prasanna

Hi,
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.

Regards,
Prasanna

推荐答案

似乎您需要添加其他包含目录"Project-> Properties-> C ++-> General".搜索wx.h文件的位置,然后在其他包含目录"框中添加该目录的位置.
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.


首先,这与预编译的头文件无关.其次,您需要将存储wx.h的目录添加到项目的 include 目录列表中.
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.


考虑您要添加示例". h"头文件中的代码...

那么您的代码将是这样..

#include"example.h"

并尝试...

#include"./example.h"

希望对您有帮助...
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...


这篇关于包括预编译的头文件-编译问题CPP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆