Код: Выделить всё
#include
#include
int main() {
std::cout > cmake .. -G Ninja
-- The CXX compiler identification is Clang 21.1.1
-- The C compiler identification is Clang 21.1.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/local/opt/llvm/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/opt/llvm/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done (3.1s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/me/project/.build
Код: Выделить всё
.build >>> ninja
[1/2] Building CXX object CMakeFiles/The_Test.dir/main.cpp.o
FAILED: CMakeFiles/The_Test.dir/main.cpp.o
/usr/local/opt/llvm/bin/clang++ -std=gnu++23 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk -MD -MT CMakeFiles/The_Test.dir/main.cpp.o -MF CMakeFiles/The_Test.dir/main.cpp.o.d -o CMakeFiles/The_Test.dir/main.cpp.o -c /Users/me/project/main.cpp
/Users/me/project/main.cpp:3:10: fatal error: 'stacktrace' file not found
3 | #include
| ^~~~~~~~~~~~
1 error generated.
Я экспериментировал с флагами -фсированным deallocation и -no -pie .>
Подробнее здесь: https://stackoverflow.com/questions/797 ... ace-header
Мобильная версия