asking for missing dll when compiled in static
I have compiled the library with BUILD_STATIC_LIBRARY=ON. No compilations errors, no issues. It is still creating the ifcplusplus.dll and ifcplusplusd.dll, don't know why. The problem comes when I am trying to add the library into my project. I have build all the libraries static as I am having compilation issues with the dynamic versions. Once I add the IFCPP into my project, it compiles, but it is still asking for the dll files, which I don't understand why it does, since I am including the .lib versions. I can bypass that problem by copying the dlls into the compilation folder, but in that case, then I start getting weird runtime errors. For example, the last one that I am getting and couldn't solve is this one:
The thread 0x56c0 has exited with code 0 (0x0).
Debug Assertion Failed!
Program: C:\XXXX\build\Debug\app.exe
File: minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp
Line: 996
Expression: __acrt_first_block == header
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
I really don't understand what it is going on. Apparently it has something to be with mixing dynamic and static libraries for debug mode, but I am trying to create everything using static libraries.
I am using VS2019 x64.
Does anybody have an idea what it is going on?
Thanks for the help