K
K
kaktak2552021-02-17 16:08:36
Sublime Text
kaktak255, 2021-02-17 16:08:36

Linter swears at the lack of a header file, although everything is in the same folder, what should I do?

I write:
#include "add.h"
Linter writes:

clang++: error
error - 'add.h' file not found


Although everything is in the same folder, what's the problem?
Everything compiles and works as it should, the problem is purely that the linter does not see the header file

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Pavlov, 2021-02-17
@kaktak255

Does the linter know where to look for additional header files? You may need to tell it the path to the folder they are in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question