Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asking for missing dll when compiled in static #213

Open
Fleakad opened this issue Jun 17, 2021 · 0 comments
Open

asking for missing dll when compiled in static #213

Fleakad opened this issue Jun 17, 2021 · 0 comments

Comments

@Fleakad
Copy link

Fleakad commented Jun 17, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant