Share via

Provide #include <filename> or #include "filename"

Flaviu_ 1,091 Reputation points
2024-02-27T12:17:49.0766667+00:00

I need to include some github library in my simple console app, and I wrote:

#include <xxx/xxx.hpp>

int main()
{
    return 0;
}

but I got: fatal error C1083: Cannot open include file: 'xxx/xxx.hpp': No such file or directory Of course, I have modified that include as:

#include "xxx/xxx.hpp"

but doesn't help, because inside xxx.hpp file, all include files are in this form:

#include <xxx/data/data.hpp>
#include <xxx/data/data_reference.hpp>
#include <xxx/data/data_type.hpp>
#include <xxx/data/comment.hpp>

How can I solve this?

Developer technologies | C++
Developer technologies | C++

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.

0 comments No comments

Answer accepted by question author

Viorel 127K Reputation points
2024-02-27T12:46:26.33+00:00

Try to determine the full path of the parent folder of <xxx/data/data.hpp>, then specify it in Project Properties, C/C++, General, Additional Include Directories (for all configurations and platforms).

Was this answer helpful?


1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.