I started c++ a week or two ago, and I have some problems with the vcpkg lib to install other lib more “easily”. I watched several videos that all used the same way of installation, when I install a package with vcpkg search curl, then vcpkg install [exact libname] I have no error everything goes correctly but when I try to compile a program with one of these packets, i get :
PS C:VSVS_CodeFinance ProjectQuantcppMonarchcpp> g++ -o SQ StockQuote.cpp StockQuote.cpp:3:10: fatal error: curl/curl.h: No such file or directory 3 | #include <curl/curl.h> | ^~~~~~~~~~~~~ compilation terminated.
and whatever lib i am trying to use that comes from vcpkg. Visual studio doesn’t seem to have a problem with these packets, but g++ obviously does.
im using
g++.exe (Rev3, Built by MSYS2 project) 14.1.0
and
vcpkg package management program version 2024-04-23
on windows 11 with PowerShell 7 Preview
I’ve tried uninstalling and reinstalling vcpkg a bunch of times, but haven’t found a real solution on the internet. I don’t know if it’s related, but I can’t use the command .vcpkg integrate project I get :
PS C:VCPKGvcpkg> .vcpkg integrate project A suitable version of nuget was not found (required v6.10.0) Downloading portable nuget 6.10.0... Downloading nuget... https://dist.nuget.org/win-x86-commandline/v6.10.0/nuget.exe->C:VCPKGvcpkgdownloads71d7307b-nuget.exe Downloading https://dist.nuget.org/win-x86-commandline/v6.10.0/nuget.exe error: nuget (C:VCPKGvcpkgdownloadstoolsnuget-6.10.0-windowsnuget.exe) produced unexpected output when attempting to determine the version: NuGet Version : 6.10.0.107
and the result of the nuget help command
I also tried to put the include vcpkg folder in the environment variable but it doesn’t change anything. :/
MoonFloww is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.