[CMake] Windows C++ static library fails to access external method during initialization

David Aldrich david.aldrich.ntml at gmail.com
Fri Nov 8 09:08:00 EST 2019


Fixed using OBJECT libraries. Thank you to anyone here who answered on
StackOverflow.

On Fri, Nov 8, 2019 at 12:02 PM David Aldrich <david.aldrich.ntml at gmail.com>
wrote:

> Hi, I have a linker problem with a Windows C++ project that uses a static
> library. I have described the problem on StackOverflow here:
>
>
> https://stackoverflow.com/questions/58765494/windows-c-static-library-fails-to-access-external-method-during-initialization
>
>
> I think the problem could be resolved by adjusting the CMakeLists.txt
> file.  Please could someone have a look at the above link and comment
> either in StackOverflow or reply here?
>
> I am using Ninja with the VS2019 C++ compiler on Windows 10.
>
> Thanks in advance,
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20191108/b1c26d9a/attachment.html>


More information about the CMake mailing list