简体   繁体   中英

VS Community 2013: cannot open include file 'winres.h'

I am trying to compile a project, but it looks for includes in the wrong folder or for some other reason cant find winres.h .

I tried adding the path to it (C:\\Program Files (x86)\\Windows Kits\\8.0\\Include\\um)\u003c/code> everywhere but it doesn't work.

My VC++ include derictories path looks like this: $(VCInstallDir)include;$(VCInstallDir)atlmfc\\include;$(WindowsSdkDir)include;$(FrameworkSDKDir)\\include;C:\\Program Files (x86)\\Windows Kits\\8.0\\Include;

My C/C++ Additional Include Directories path looks like this: ../../include;../../src/libpocketsphinx;../../../sphinxbase/include;../../../sphinxbase/include/win32;C:\\Program Files (x86)\\Windows Kits\\8.0\\Include;%(AdditionalIncludeDirectories)

The error is:

pocketsphinx.rc(10): fatal error RC1015: cannot open include file 'winres.h'.

How do I change the include path?

I would post the images illustrating but I do not have enough reputation points. To change the includes of a project, follow these steps:

1) Open visual studio.

2) Open your projects.

3) Open the drop down menu by right-clicking your project in the solution explorer.

4) Click on Properties.

Now there are two places to change includes:

1) Click on VC++ Includes.

2) Add an includes directory to the field "Include Directories".

Or

1) Click on C/C++>General.

2) Add an includes director to the field "Additional Include Directories".

If this is just for the current project, use the second means of adding. Then of course, click OK or Apply.

For future reference, I suggest going through some of the VS tutorials. This would be covered there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM