Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 C++ 子项目中意外禁用动态链接后遇到此错误,这导致-static编译时将标志传递给 clang。
-static
通过在 LLVM 编译器语言设置中将“启用与共享库的链接”切换为“是”(默认)来摆脱它。GCC_LINK_WITH_DYNAMIC_LIBRARIES = NO(这将从项目文件中删除)。
GCC_LINK_WITH_DYNAMIC_LIBRARIES = NO
在您的方案诊断中删除 Guard Malloc 选项。这就是导致我的错误的原因。