简体   繁体   中英

Why can't the visual studio compiler find certain header files while intellisense can?

I am working on a project in Visual Studio 2010 and I need to include some header files from another location on my PC.

In the project properties I have added the required folder to the c++ "Additional Includes" field. When adding these files to a .h or a .cpp file I can use auto complete to find all of them, however when I go to actually use some symbol that is defined in this package the compiler can not find that symbol and intellisense marks it as bad.

When I right click on one of these symbols and select "Go To Declaration" the IDE successfully loads the file and takes me to the line where that symbol is defined.

As per the advice of some other answers I have deleted my intellisense database files, they were not regenerated upon loading the project.

What should I do next?


Some other details about the environment, all of my folders are protected by Rational ClearCase. The files I am trying to include are located on another "drive". I need to include one file and it should include all of the rest for the library. The specific library I am working with is the AVT Vimba 1.2 SDK.

如对问题的评论中所述,在探索#if指令的文件时,我发现了一些似乎未在此SDK手册中记录的命名空间声明。

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