|
Re: Symbol std::filesystem could not be resolved [message #1836240 is a reply to message #1836223] |
Fri, 25 December 2020 18:48 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
Note that the include for <filesystem> isn't flagged.
The indexer was able to locate it.
The line with the namespace IS being flagged and std::filesystem is underlined.
This is probably indicating that std::filesystem doesn't exist.
It's possible that the __cpluplus macro set by the compiler builtin reporting has the wrong c++ standard.
Check that __cpluplus is greater than or equal to 201703L.
The builtin results can be viewed in the consolidated discovery dialogs
Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc. --> Entries tab
If it is lower than 201703L then you have to include --std=c++17 in the builtins command.
For Paths and Symbols entries to be passed to the indexer,
you need to have the Managed Build Settings Entries enabled in
Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc.
You shouldn't have to set the builtin includes in Paths and Symbols.
EDIT: I was saying std::filespace instead of std::filesystem. Fixed it.
[Updated on: Sat, 26 December 2020 06:49] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04526 seconds