Address is already used by function error
Posted: Wed Apr 30, 2025 2:12 am
Using the `O1` option to compile the file causes address conflicts. Switching to `Ob1` allows the DLL to be protected normally, but I still want to use `O1` for compilation optimization. Is there any other possible solution?
The CMake modifications are as follows:
set(CMAKE_CXX_FLAGS_RELEASE "/O1 /DNDEBUG /GL /Zi") -> set(CMAKE_CXX_FLAGS_RELEASE "/Ob1 /DNDEBUG /GL /Zi")
The CMake modifications are as follows:
set(CMAKE_CXX_FLAGS_RELEASE "/O1 /DNDEBUG /GL /Zi") -> set(CMAKE_CXX_FLAGS_RELEASE "/Ob1 /DNDEBUG /GL /Zi")