Closed siebenschlaefer closed 1 year ago
What seem to work is moving these weak
declarations (lines 28-35) to the beginning of the file, before #include "last_will.cpp"
I've tested that with GCC-9.5.0, GCC-12.1.0, Clang-11.1.0, and Clang-15.0.7 on Linux.
Thanks for finding this! Now we only need the same thing to prep a class to make the test run when it is not implemented. Do you have an idea?
When compiling a (correct) solution of the last-will exercise with Clang (version 15.0.7 on Linux) I get the following error:
For some reason Clang doesn't like this
__attribute__((weak))
.I couldn't find a quick solution so I'm opening this issue.