[opensuse] No C++17 filesystem support for 15.1?
All, Does gcc for 15.1 not provide filesystem support with -std=c++17? Example: $ gpn filesys_dir_iter.cpp -std=c++17 -- g++ -Wall -Wextra -pedantic -Wshadow -std=c++17 -Ofast -o /tmp/bin/filesys_dir_iter filesys_dir_iter.cpp -- filesys_dir_iter.cpp:3:10: fatal error: filesystem: No such file or directory #include <filesystem> ^~~~~~~~~~~~ compilation terminated. -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi David, it is still experimental. You have to include it from there and link it accordingly. This works: g++ -Wall -Wextra -pedantic -Wshadow -std=c++17 -Ofast -o fs fs.cpp -lstdc++fs Greetings, Simon Am 17.01.20 um 08:26 schrieb David C. Rankin:
All,
Does gcc for 15.1 not provide filesystem support with -std=c++17? Example:
$ gpn filesys_dir_iter.cpp -std=c++17 -- g++ -Wall -Wextra -pedantic -Wshadow -std=c++17 -Ofast -o /tmp/bin/filesys_dir_iter filesys_dir_iter.cpp -- filesys_dir_iter.cpp:3:10: fatal error: filesystem: No such file or directory #include <filesystem> ^~~~~~~~~~~~ compilation terminated.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
With experimental I mean: #include <experimental/filesystem> Am 17.01.20 um 11:49 schrieb Simon Heimbach:
Hi David,
it is still experimental. You have to include it from there and link it accordingly. This works: g++ -Wall -Wextra -pedantic -Wshadow -std=c++17 -Ofast -o fs fs.cpp -lstdc++fs
Greetings, Simon
Am 17.01.20 um 08:26 schrieb David C. Rankin:
All,
Does gcc for 15.1 not provide filesystem support with -std=c++17? Example:
$ gpn filesys_dir_iter.cpp -std=c++17 -- g++ -Wall -Wextra -pedantic -Wshadow -std=c++17 -Ofast -o /tmp/bin/filesys_dir_iter filesys_dir_iter.cpp -- filesys_dir_iter.cpp:3:10: fatal error: filesystem: No such file or directory #include <filesystem> ^~~~~~~~~~~~ compilation terminated.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 01/17/2020 05:21 AM, Simon Heimbach wrote:
With experimental I mean: #include <experimental/filesystem>
Am 17.01.20 um 11:49 schrieb Simon Heimbach:
Hi David,
it is still experimental. You have to include it from there and link it accordingly. This works: g++ -Wall -Wextra -pedantic -Wshadow -std=c++17 -Ofast -o fs fs.cpp -lstdc++fs
Greetings, Simon
Thank you Simon. That is what I needed to know for Leap. The current gcc 9.2 includes filesystem support by default, so I guess it's just a matter of the gcc version. -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
David C. Rankin
-
Simon Heimbach