c++ - Visual Studio unable to find header file during compile despite include directory have been specified -
after adding include directory of library using. visual studio 2010 able find header files #included source code (intellisense not show errors). when building solution, tells me wasn't able find header file. same property used in previous project not post issue.
the solution have use direct address header files library, find irritating so, header files of library cross reference each other , not make sense edit of them.
does have idea causing problem?
intellisense uses different algorithm when searching include files compared compiler & linker. in particular, can (sometimes) find header files though include directories not specified.
i'll assume specified include directories correctly.
an idea: there's bug in visual studio 2010 if specify rooted path (ex. \myproject\includes
), when building solution, vs uses drive installed (usually c:) rather drive solution located. if case, you'll have either specify drive (ex. d:\myproject\includes
) or use relative path (ex. ..\..\myproject\includes
).
Comments
Post a Comment