You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I use the poco library via vcpkg. The application uses /MTd runtime library, but vcpkg is set to not use static libraries. Poco builds correctly, but in the linking stage I get LINK : fatal error LNK1104: cannot open file 'PocoFoundationmtd.lib'.
Environment
OS: Windows 10
Compiler: Microsoft Visual C++ 2019, version 16.11.15
To Reproduce
Steps to reproduce the behavior:
Add {"name":"poco", "platform": "x64|windows"} to vcpkg.json.
Create Visual Studio C++ project with vcpkg activated that uses some Poco functionality (for example #include "Poco/URI.h").
The vcpkg config in the project is the default apart from Use Vcpkg Manifest that is set to Yes. Particularly Use Static Libraries is set to No, but this should be the default.
Build project in debug config with Runtime Library set to Multi-threaded Debug (/MTd)
Expected behavior
I would expect the project to link correctly and give me access to Poco functionality.
I could get the linking to work correctly by adding $(VcpkgManifestRoot)\vcpkg_installed\x64-windows-static\x64-windows-static\debug\lib to the Linker -> General -> Additoinal LIbrary Directories setting, but this shouldn't be needed. And I'm not even sure this is the correct linking.
The PocoFoundatinmtd.lib is correctly built, it's just the linking that is incorrect. However I suspect the linking path is probably correct and the error is trying to link to the mtd variant of the library when it should be just the d variant.
Note that this particular configuration of /MTd + vcpkg as dll links just fine with other libraries such as nlohmann-json and miniz.
The text was updated successfully, but these errors were encountered:
Describe the bug
I use the poco library via vcpkg. The application uses
/MTd
runtime library, but vcpkg is set to not use static libraries. Poco builds correctly, but in the linking stage I getLINK : fatal error LNK1104: cannot open file 'PocoFoundationmtd.lib'
.Environment
To Reproduce
Steps to reproduce the behavior:
{"name":"poco", "platform": "x64|windows"}
to vcpkg.json.#include "Poco/URI.h"
).Use Vcpkg Manifest
that is set toYes
. ParticularlyUse Static Libraries
is set toNo
, but this should be the default.Multi-threaded Debug (/MTd)
Expected behavior
I would expect the project to link correctly and give me access to Poco functionality.
Failure logs
Additional context
$(VcpkgManifestRoot)\vcpkg_installed\x64-windows-static\x64-windows-static\debug\lib
to the Linker -> General -> Additoinal LIbrary Directories setting, but this shouldn't be needed. And I'm not even sure this is the correct linking.mtd
variant of the library when it should be just thed
variant.The text was updated successfully, but these errors were encountered: