Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*

Problem with ASAN ( Undefined Symbols )

Version001
New Contributor I
322 Views

Hello,

 

I'm trying to compile my application with ASAN, but I'm getting 3 errors;

lld-link : error : undefined symbol: __asan_set_shadow_private
lld-link : error : undefined symbol: __asan_set_shadow_static_local
lld-link : error : undefined symbol: __asan_unpoison_shadow_static_local

 

I'm using Windows 11,  latest VS 2022 and latest Intel C++ Compiler. My project target is X64 Windows EXE application and configured MT linking.

 

I thought the problem might be due to the MT compilation, but when I compiled another application with Clang toolkit on VS 2022, I was able to link ASAN.

 

I'm using /fsanitize=address and including these libs from Linker -> Input -> Additional Dependencies;

clang_rt.asan_dynamic-x86_64.lib
clang_rt.asan_static_runtime_thunk-x86_64.lib

 

any solution for this? thanks!

0 Kudos
0 Replies
Reply