Need help from C/C++ experts with VS on Windows
-
Finished building a very old C/C++ project with VS on Windows. The project was made to run with a shell script which is not supported on Windows terminal. I managed to launch it on git bash on Windows. But it crashes. I found out the crash location which turns out to have no errors there. I believe some corrupt memory issues cause the crash. I turned on sanitizer in debug build and try to detect the memory issue. When debug build is run, it looks for asan libs. I set the lib path of asan with
export LIB="$LIB:/c/Program\ Files/Microsoft\ Visual\ Studio/2022/Professional/VC/Tools/MSVC/14.42.34433/lib/x64"
Still got error: while loading shared libraries: clang_rt.asan_dynamic-x86_64.dll
How to set the lib path correctly? -
@JoeCFD said in Need help from C/C++ experts with VS on Windows:
I set the lib path of asan with
You have to set the PATH env var. There is nothing like a 'LIB' env var on windows to search fpr shared libraries.
-
@Christian-Ehrlicher Thanks for your help, Christian. Will try it.
-