Vcpkg Libraries not detected by Visual Studio 2019 Community edition

zibers 1 Reputation point
2021-03-21T22:18:52.097+00:00

Hello,

I'm been using the spdlog:x86-windows library installed via vcpkg and it was working in VS2019 CE. However, I tried adding my solution to source control via git and since then the headers

#include <spdlog/spdlog.h>
#include <spdlog/sinks/rotating_file_sink.h>

are no longer recognised. I've tried reinstalling the packages via vcpkg, reintegrating vcpkg and also followed the instructions here (vcpkg-libraries-not-detected-by-visual-studio-2019-community-edition) but still no luck.

How can I get VS2019 CE to recognise these packages, please?

Thanks in advance.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,964 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,416 Reputation points
    2021-03-22T09:20:12.36+00:00

    Hi zibers,

    You can try to download and install static library: vcpkg install spdlog:x86-windows-static

    Best Regards,
    Dylan


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our **documentation to enable e-mail notifications if you want to receive the related email notification for this thread.**

    0 comments No comments

  2. zibers 1 Reputation point
    2021-03-22T11:01:03.817+00:00

    I fixed this by recreating a different solution and it worked afterwards.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.