ise*_*ale 6 macos cmake clang linker-errors address-sanitizer
我一直在尝试使用 Clang 的地址代码清理器,但链接器没有它。链接器可能是“ld”,尽管我的 CMAKE 设置向我保证 clang 是链接器。
添加-fsanitize=address到编译器和链接器标志。
错误:
Run Code Online (Sandbox Code Playgroud)Undefined symbols for architecture x86_64: ___asan_after_dynamic_init ... ___asan_before_dynamic_init ... etc. ld: symbol(s) not found for architecture x86_64 <<<< **suspicious** clang: error: linker command failed with exit code 1 (use -v to see invocation)
cmake:3.7.1
CMAKE_CXX_COMPILER = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++(重定向到clang)
| 归档时间: |
|
| 查看次数: |
2333 次 |
| 最近记录: |