Thank you both for your suggestions!

Wolfgang, I am using ICC 2021.5.0 which as far as I know fully supports the 
C++17 standard, including the *std::filesystem* library. So who knows what 
is going on. 

I tried including the flag -DDEAL_II_CXX_FLAGS="-lstdc++fs" but that still 
didn't work. 

The error message I am getting is 

CMakeFiles/example_step_83_release.dir/step-83/step-83.cc.o:step-83.cc:function 
Step83::CathodeRaySimulator<2>::checkpoint(): error: undefined reference to 
'std::filesystem::__cxx11::path::_M_split_cmpts()'

CMakeFiles/example_step_83_release.dir/step-83/step-83.cc.o:step-83.cc:function 
Step83::CathodeRaySimulator<2>::checkpoint(): error: undefined reference to 
'std::filesystem::__cxx11::directory_iterator::directory_iterator(std::filesystem::__cxx11::path
 
const&, std::filesystem::directory_options, std::error_code*)'

CMakeFiles/example_step_83_release.dir/step-83/step-83.cc.o:step-83.cc:function 
Step83::CathodeRaySimulator<2>::checkpoint(): error: undefined reference to 
'std::filesystem::__cxx11::directory_iterator::operator*() const'

CMakeFiles/example_step_83_release.dir/step-83/step-83.cc.o:step-83.cc:function 
Step83::CathodeRaySimulator<2>::checkpoint(): error: undefined reference to 
'std::filesystem::__cxx11::directory_iterator::operator++()'

CMakeFiles/example_step_83_release.dir/step-83/step-83.cc.o:step-83.cc:function 
Step83::CathodeRaySimulator<2>::checkpoint(): error: undefined reference to 
'std::filesystem::__cxx11::path::_M_split_cmpts()'

CMakeFiles/example_step_83_release.dir/step-83/step-83.cc.o:step-83.cc:function 
Step83::CathodeRaySimulator<2>::checkpoint(): error: undefined reference to 
'std::filesystem::__cxx11::path::_M_split_cmpts()'

CMakeFiles/example_step_83_release.dir/step-83/step-83.cc.o:step-83.cc:function 
Step83::CathodeRaySimulator<2>::checkpoint(): error: undefined reference to 
'std::filesystem::rename(std::filesystem::__cxx11::path const&, 
std::filesystem::__cxx11::path const&)'

CMakeFiles/example_step_83_release.dir/step-83/step-83.cc.o:step-83.cc:function 
Step83::CathodeRaySimulator<2>::checkpoint(): error: undefined reference to 
'std::filesystem::status(std::filesystem::__cxx11::path const&)'

make[2]: *** 
[examples/CMakeFiles/example_step_83_release.dir/build.make:106: 
bin/step-83.release] Error 1

make[1]: *** [CMakeFiles/Makefile2:8634: 
examples/CMakeFiles/example_step_83_release.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs....
I will try going with -DDEAL_II_COMPILE_EXAMPLES=OFF. That should also make 
the build go faster.

David

On Thursday, February 6, 2025 at 11:27:11 AM UTC-5 Matthias Maier wrote:


On Thu, Feb 6, 2025, at 09:40 CST, David Montiel <dmon...@umich.edu> wrote: 

> Can I do that without disabling the rest of the examples, as in 
> DEAL_II_COMPONENT_EXAMPLES=OFF? 

You can simply set -DDEAL_II_COMPILE_EXAMPLES=OFF and it will install 
the examples in source form only. 

We have removed compilation of example steps from the build system 
entirely in the current development version. 

Best, 
Matthias 

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/dealii/cbe3e82c-4ca5-4a88-b12a-f178fe4a0e9fn%40googlegroups.com.

Reply via email to