Symbol std::filesystem could not be resolved [message #1836223] |
Thu, 24 December 2020 12:11  |
Eclipse User |
|
|
|
Hi everyone,
I have a problem when trying to use the standard library filesystem namespace, introduced with C++17.
Eclipse doesn't seem to recognize the symbol (std::filesystem is highlighted and says "symbol could not be recognized"), but I believe I updated the compiler accordingly, because the program compiles and runs, and I am able to call functions from that namespace.
I found another issue with a similar problem (https://www.eclipse.org/forums/index.php/t/285005/), but the suggestions provided didn't help me. I went to Project Properties -> C/C++ General -> Paths and Symbols -> Includes, and in include directories I added a lot of them like this: C:\MinGW\lib\gcc\mingw32\9.2.0\include\c++.
In the directory aforementioned there is a file called filesystem! What am I doing wrong? The error is very annoying.
Thanks to anybody who's willing to help!
|
|
|
|
|
|
Re: Symbol std::filesystem could not be resolved [message #1836253 is a reply to message #1836249] |
Sat, 26 December 2020 10:06  |
Eclipse User |
|
|
|
Eureka!
Rebuilding the Index after all the operations made yesterday fixed the issue, before I only tried closing and opening the project but that didn't work.
I would never have made it without your help, thanks a lot!
[Updated on: Sat, 26 December 2020 10:11] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03806 seconds