Closed kleinesfilmroellchen closed 1 year ago
Are you sure that you have this installed in VS2019?
Because without those libraries the symbols for asan things will not be on your PC.
A temporary fix without installing those would be to just build the release version of asar, by using cmake --build . --config Release
I've had this issue in the past, but can't seem to reproduce it now. The workaround: in Visual Studio, remove -fsanitize=address
from both C/C++>Command Line and Linker>Command Line. Turn off Enable Address Sanitizer
under C/C++.
Something is strange with the asar cmakelists, as it references CMAKE_LINKER_FLAGS_DEBUG
here https://github.com/RPGHacker/asar/blob/f5283d29636850df628a46d13d9e2bf10b2dacef/src/asar/CMakeLists.txt#L15 but it isn't documented as a cmake variable https://cmake.org/cmake/help/latest/manual/cmake-variables.7.html
That very much looks like the problem, I'll investigate tomorrow. Release build sounds better for me anyways (I'm benchmarking asar against other software) so thanks for the hint, but that should be in the documentation.
@Atari2 thanks for the hints, a quick update and everything builds now!
On master, running
gives me
(couldn't resolve symbol xyz a thousand times over) which suggests to me that the linker is not given all arguments.
I have tried
cmake src
and building in VS2019 itselfAm I missing something here?