[unicorn-lib]Fix build error.#6534
[unicorn-lib]Fix build error.#6534Rastaban merged 5 commits intomicrosoft:masterfrom JackBoosY:dev/jack/6479
Conversation
|
If there are no lib files it means (almost always) that the dlls are empty. |
|
@cenit no, it generates the dll without generating lib. In static mode, it generates lib. |
|
Exactly. Whats’s the size of the dlls? If it is few KB, they are probably empty and the project does not export any function or symbol. In that case, with empty dlls, MSVC does not produce a related lib file for the dll. Maybe the project works only with static linking. It’s easy, just try it in a downstream test project |
|
Release dll is 584KB and debug dll is 2.23MB. |
|
a quick search for declspec, extern, export shows that only extern is used. As such this is probably only a static library (on windows) or requires CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS. |
…d modify ZLIB link name.
|
would be good if upstream could provide a correct config/target file for this but that is probably too much to ask for ;) |
|
@Neumann-A I agree with you. |
…library should be linked.
Fix link error:
- Unable to link to the pcre2 library.
- Unable to link to the zlib library.
Related: #6479.