Skip to content

LINK : fatal error LNK1104: cant open file “PocoFoundationmtd.lib” #4934

Open
@oneanime

Description

@oneanime

I installed Poco using vcpkg and configured my CMakeLists.txt as follows:

if(MSVC)
    set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()

This configuration causes issues on Windows, although it runs fine on macOS. Due to certain requirements, I need to keep the above configuration. How can I resolve the errors with Poco on Windows?

D:\kits\vcpkg\installed\x64-windows\debug\lib\pcre2-8d.lib D:\kits\vcpkg\installed\x64-windows\debug\lib\zlibd.lib D:\kits\vcpkg\installed\x64-windows\debug\lib\utf8proc.lib D:\kits\vcpkg\installed\x64-windows\debug\lib\drogon.lib rpcrt4.lib crypt32.lib D:\kits\vcpkg\installed\x64-windows\debug\lib\trantor.lib iphlpapi.lib advapi32.lib ws2_32.lib D:\kits\vcpkg\installed\x64-windows\debug\lib\jsoncpp.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:src\CMakeFiles\physx_server.dir/intermediate.manifest src\CMakeFiles\physx_server.dir/manifest.res" failed (exit code 1104) with the following output:
LINK : fatal error LNK1104: cant open file “PocoFoundationmtd.lib”

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions