1
當asan
工具編譯我的代碼,我發現了以下錯誤:未定義的引用「_asan_init_v4」編譯時
undefined reference to '_asan_init_v4'
注:我使用suse11_64 bit
和gcc version 6.1
。
當asan
工具編譯我的代碼,我發現了以下錯誤:未定義的引用「_asan_init_v4」編譯時
undefined reference to '_asan_init_v4'
注:我使用suse11_64 bit
和gcc version 6.1
。
我不確定這是否是問題,但對我而言,將-lasan
添加到鏈接器選項足以讓我的程序生成並運行。
您可以提供關於如何編譯代碼的更多詳細信息(例如編譯和鏈接行)。 – yugr
編譯謬誤:-Wall,-g,Wextra,-Wno-missing-field-initializers,-Wformat = 2,-Wpointer-arith,-fno-omit-frame-pointer,-m64,-D_LARGEFILE_SOURCE,-D_FILE_OFFSET_BITS = 64 ,-fsanitize = address,-fno-stack-protector,-fno-omit-frame-pointer,-fsanitize-recover = address,-fsanitize = undefined,-D_GLIBCXX_USE_CXX11_ABI = 0,-fgnu89 -inline – vamshi
鏈接標誌:-m64, -rdynamic,-fsanitize =地址,-fsanitize-recover =地址,-fsanitize = undefined,-D_GLIBCXX_USE_CXX11_ABI = 0 – vamshi