curl.lib missing (Visual Studio 2019, C++) - c++

I have a project that require curl.lib but i tried every single tutorial that i have found online but noone helped me.
The first method that i have tried is just downloading curl, going to winbuild and to run some stuff with nmake but i'm getting some errors and after downloading nmake and cl i'm still getting an error (return: 0xC0000135) and i don't know how to fix this.
I have also tried some other methods like using vcpkg but i can't run vcpkg install curl because something goes wrong and i get this error: Building package zlib:x86-windows failed with: BUILD_FAILED
other tutorials are just not working and i spent 6 hours trying to solve this issue.
Any idea?

Finally i solved the issue using vcpkg, i discovered that this issue enter-vsdevshell error was the problem and if someone had my same problem that's the fix.

Related

How do i install correctly g++ and clang++ complilers on windows 11 for visual studio code

Well, it's more like a two-part question. I was following step by step this youtube tutorial about setting up visual studio code and trying different compilers(I went to winlibs and downloaded Win64: Zip archive version) and everything was great until 35:30 where the terminal output was fatal error: cannot execute 'cc1plus': CreateProcess: No such file or directory compilation terminated. I uninstalled and repeated the process several times but the problem remained. I followed some other tutorials about fixing the problem but it didn't work and soon after something else came up. I uninstalled and installed again the compilers and when I tried to find them in the command prompt clang++ --version worked and gcc --version but when I tried the g++ --version this appeared on the screen.Screenshot Saying this can't run on your pc or whatever. I really need some help did I do something wrong? How do I fix both these issues (terminal error and this app cant run on your PC) I ran a virus scan,SFC scan, I run command prompt as administrator, and this does work but at the beginning I didn't have to do that and if I don't choose that option still says that and it's really frustrating. I would really appreciate some help. Thanks in advance!

vs code is throwing #include error on macOS monterey it worked fine on BigSur

I updated to macOS monterey yesterday and my vs code is not compiling any code since then. It is throwing these errors :
#include errors detected. Please update your includePath. Squiggles are
disabled for this translation unit (/Users/ishudhariwal/contest.cpp).
cannot open source file "endian.h" (dependency of "iostream")
It was working perfectly fine on BigSur. I am a beginner at programming. I can't figure out what's going wrong and how to fix it.
I have faced exactly the same problem as you a few days ago after updating my MacBook M1 on the Monterey. Frankly, I didn't go into too much detail about the situation, but after finding out the reason for this behaviour it became clear, that include files like stdio.h and other disappeared miraculously. So in the end, a single command in the terminal helped -
xcode-select --install
I hope that it will help you to solve the problem.
If you are using the C/C++ Package by Microsoft you need to update your c_cpp_properties.json file located in the generated .vscode folder. Add this to your MacFrameworkPath:
"macFrameworkPath": [
"/Library/Developer/**"
],
``` This will include all the files you need from /Library/Developer. The ** looks through every folder inside that and on.
Before installing any command line tools just take a look at your Xcode, it might not be installed. First install it, after that you can try running this command
xcode-select --install
This worked for me. Hope it helps:)
Try installing Xcode Command-line Tools. Most probably this will solve the issue.
Try the following.
Go to https://developer.apple.com/download/all/
Login or sign up
Look for: "Command Line Tools for Xcode 13.x" in the list of downloads then click the dmg and download.
Install it.

Can't install libraries on Visual Studio code

I downloaded vcpkg, i managed to run the commands but whenever i try to install a library, the following error comes up :Error: while loading iostream:
The port directory (D:\New folder (2)\DEV\vcpkg\ports\iostream) does not exist
Error: failed to load port from D:\New folder (2)\DEV\vcpkg\ports\iostream
Note: Updating vcpkg by rerunning bootstrap-vcpkg may resolve this failure.
i tried updating vcpkg but it didnt work. I just started programming in c++ and i cant find a way to install libraries or whatever they are called . Is there any other way to install iostream and stuff like that?
sorry if this is a stupid question but im new and i didnt find anything that could have helped me.

FLAC.framework error

I am trying to learn how to use SFML however when i try to compile my c++ code i get Xcode telling meCommand /bin/sh failed with exit code 2. this is the error i get when i click more info
ditto: can't get real path for source
'/Library/Frameworks/FLAC.framework' couldn't copy
/Library/Frameworks/FLAC.framework to
/Users/tris/Library/Developer/Xcode/DerivedData/idk-ckysmijtsswdysecxtelmnggzhun/Build/Products/Debug/idk.app/Contents/Frameworks//FLAC.framework
Command /bin/sh failed with exit code 2
how would i go about fixing this? i have tried reinstalling the Command line tools packaged with xcode.
thanks.
There was an error with the way i had installed SFML. If anyone comes across this error then please go back and install the dylib option of sfml. that is how my issue was resolved.

Failed to clean when building wxwidgets using MinGW

I have a problem when cleaning wxwidget using MinGW. The last error is like this :
make (e=2):system cannot find the file specified.
mingw32-make : *** [clean] error 2
and it seems like all of the errors are the same as the one I posted above, and that errors can be seen from the start of cleaning process (after typing mingw32 clean instruction).
Do you know how to solve this?
I have already followed every step mentioned in wxwidgets wiki and any other wiki that explain the way to install this. Of course I didn't install MSYS or anything mentioned in the wiki, just minGW only (and Code::Blocks, but both of them are installed separately).
BTW, I am using the latest stable minGW (3.8x) and the version of the wxwidgets I am getting problem with is 2.9.4.
Any help would be appreciated. sorry for my bad english :)