In my some VS2022 codes solution explorer,
[Header Files]
- Controller.h
- sshell.h
- ScrollWindow.h
- some more .h....
[Source Files]
- Controller.cpp
- main.cpp
- sshell.h
- some more .h...
And for the external directory, setted
Project Property -> C/C++ -> Additional Include Directories : C:\SFML-2.0\include
Project Property -> Linker -> Additional Library Directories : C:\SFML-2.0\lib
in my VS2022.
But errors~
#include "atomic"
#include <SFML/Graphics.hpp>
#include <memory>
in my ScrollWinodw.h,
#include <SFML/Graphics.hpp>
Error C1083 Cannot open include file: 'SFML/Graphics.hpp': No such file or directory xxxxx C:\Users\User\source\test\viewer\Wrapper\ScrollWindow.h
What's the problem? Maybe header #include sequence problem?
It's not #include recursive problem because there is no same header file
name dupicated.
Actually it's a little bit unfamiliar with me for #include hpp header file
in ~~~.h header file.
And the SFML is well installed and well detected path.
What I have tried:
I've tried to add "Project Property" set (lib, include)
and then compile, cpp error (
#include <SFML/Graphics.hpp>
) is cleared
but header file's header is still problem.
And failed to change from
#include <SFML/Graphics.hpp>
to
#include "SFML/Graphics.hpp"