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
[poco] MTd link failure #38462
Comments
@az-faro Thanks for posting this issue, I think we have included the debug path correctly, can you rerun the command
|
Hello @FrankXie05. This indeed now works correctly in debug. The same issue persists in release though. I know I didn't mention that in the original bug report, but it's exactly the same issue in release as there is in debug. |
Actually, upon closer inspection this still doesn't work for me. Using the latest version of vcpkg and poco 1.13.3 still shows exactly the same issue:
|
Note that this request to install poco when you build "for x64 or for windows".
Are you sure? The log says
And that package builds (CI logs): poco:x64-windows:/debug/lib/PocoFoundationd.lib |
As far as I understand Visual Studio will decide which triplet to use depending on which configuration I choose to build and if I configure that I want to use static libraries or not.
Well that's the issue then isn't it? if it builds those version and then tries to link the mtd version? I don't choose which version to link, vcpkg does. |
Does it? I assume you use msbuild, not CMake. Vcpkg uses "autolinking" for msbuild. It would choose exactly (all!) the files which are there. |
Well this is exactly all the code in the test project I made to illustrate the issue. I think it's safe to say I'm not forcing #include <iostream>
#include "Poco/URI.h"
int main()
{
std::cout << "Hello World!\n";
} |
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: