I can not understand why the header file is connected, but when building Visual Studio it does not see it.

I remake library from 32 bits in 64 bits.

enter image description here

enter image description here

  • You can clearly see on the first screenshot that master_dll_defines.h is in some kind of ..\..\headers . I don’t see any headers in the project settings in the second screenshot. What is the meaning of the second screenshot, if it is not visible, is there these headers or not? Why didn't you open the list of directories before taking a screenshot? - AnT

2 answers 2

You may not have VS configured to work with this folder. A similar question has already been raised. Check directories in tools> options> directories.

Alternatively, in the project properties in the parameter Additional> Include Directories, you must specify the path to all folders (Settings> Configuration Properties> C \ C ++> General).

  • tools> options> directories. can not be because I have opened only one project. Settings> Configuration Properties> C \ C ++> General updated the question; that’s how it was done - timob256
  • @ timob256, try specifying another directory - Alexandr

Standard implementation headers (i.e., "system" headers) are specified in triangular brackets in #include . I have never heard of such a standard header as master_dll_defines.h . Why did you suddenly use triangular brackets to include this heading? This also applies to the other headers with strange names.

If you want the header file to be searched in the paths configured in the local settings of your project, use "" rather than triangular brackets.

  • Changed how it did not work and does not work - timob256
  • one
    @ timob256: So the path is registered? You can clearly see in the screenshot that master_dll_defines.h lies in ..\..\headers . In the settings, I do not see any headers . - AnT
  • It seems so, except in those cases where it is not so little more than completely :) Just the triangular brackets are used when searching in paths, and the usual quotes for searching by the obsalyutny path. The author can add his own directories in the compiler (project) path, and then it will work. - NewView
  • one
    @NewView Perhaps, but this is not a reason to abuse. Triangular brackets are intended for headers known to the compiler. For custom headers - only quotes. - AnT
  • As a style, I agree and support - NewView