求助g++的fsanitize
  • 板块学术版
  • 楼主Fresca
  • 当前回复4
  • 已保存回复4
  • 发布时间2021/12/21 20:17
  • 上次更新2023/10/28 13:56:34
查看原帖
求助g++的fsanitize
431265
Fresca楼主2021/12/21 20:17

使用以下命令编译时

g++ temp.cpp -o temp.exe -Wall -fsanitize=undefined

提示

D:/Microsoft VS Code/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lubsan
collect2.exe: error: ld returned 1 exit status
2021/12/21 20:17
加载中...