AScan 编译一些错误

2020-06-23  本文已影响0人  明翼

1. 对“__asan_report_load4”的未定义引用

程序出现大量的报错,应该是静态链接库没有链接上,设置下:

-lasan

解决。

2. 运行时候报错

==20744==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.

上一篇下一篇

猜你喜欢

热点阅读