How to install cURL into visual studio code - c++

I've been trying to get curl into vsc, so far I've managed to install curl and use commands in command prompt, but I have no idea how to implement it into VSC?
The path if needed is C:\curl-7.84.0-win64-mingw
(On another note, I'm trying to use it for C++ development)

Related

How to make project from github [duplicate]

This question already has answers here:
How to install and use "make" in Windows?
(14 answers)
Closed 2 years ago.
I am downloading a library from the github
/////////////////////
https://github.com/ossrs/srs
///////////////////////////
The steps which i follow are
Create a folder
Run power shell and point to the folder
Git clone the source
The issue i am facing is the Make command in the step 2 of installation
The power shell does not accept the make command , so how do i make the source.
Make is an UNIX command for the UNIX make utility. To compile it on Windows, you can use Visual Studio, by running the Developer Command Prompt for VS, and using Microsoft's version of this tool - nmake: nmake -f Makefile
However, it looks like the configure script in /src of the package can only run on UNIX, so if you want to build this package yourself, it will be easier to use the Windows Subsystem for Linux, which will let you run a Linux environment that supports the commands in the configure file as well as the Make set up.
Method 1:
You can try git clone using the https address of your repository
git clone https://github.com/ossrs/srs.git
This will add a folder to the directory where you did git clone
Method 2:
Download Zip from git repository as shown in the image above
Unzip the files and add it to your project.
You can simply click on the green Code button, then Download ZIP instead of using powershell and git.

How to install OpenSSL on Windows 7 64bit

I am trying to install OpenSSL to use it on my C++ project in Visual Studio Express 2012 under Windows 7. Refering to this answer, I have installed perl, but when I type the command in the windows cmd, I get the following error:
[]
I have been all day trying to install it and the frustration of not having a decent documentation for dummies makes me want to give up. Where do I have to type the command to install it?
You can download bin file, example here https://wiki.openssl.org/index.php/Binaries
Then write two OPENSSL environment variable in windows(explain in photo), there is path variable.

Installing c++ boost using cygwin: can't find configure file

I'm trying to install Boost for c++. Since I use cygwin (on Windows 7) I follow these instructions for Unix.
I start by downloading boost_1_55_0.zip from sourceforge. The instructions tell me to run tar --bzip2 -xf /path/to/boost_1_55_0.zip but this doesn't work (probably because the downloaded file is .zip and not .tar.bz2; I can't find the latter anywhere to download), so instead I use winrar and unzip it into /usr/local.
After this the header-only libraries work fine, but I need the ones where a build is necessary.
The instructions tells me to go to the boost folder and run./configure --help, but this doesn't work; I get the message -bash: ./configure: No such file or directory. So I locate the file configure in the folder /usr/local/boost_1_55_0/tools/build/v2/engine/boehm_gc, go there and try again, and this time it works: I get the help for configure.
I then try to run ./configure --prefix=/usr/local/boost_1_55_0 --enable-cplusplus but get the error message configure: error: cannot run /bin/sh ./config.sub. I try it with only one or none of the options too but that doesn't help.
Any ideas?
I don't know what guide you're following, but to install boost I have done:
cd boost
./bootstrap.sh
./b2
./b2 install
stop
As report boost doc:
If you plan to build from the Cygwin bash shell, you're actually
running on a POSIX platform and should follow the instructions for
getting started on Unix variants. Other command shells, such as
MinGW's MSYS, are not supported—they may or may not work.

Can't find the file "create-multi-platform-projects.py"

I downloaded the sdk (3.0a1). According to cocos2d-x guide, I have to run the create-multi-platform-projects.py command in order to create a project, but the script doesn't exist in the package I have downloaded.
The guide says
Note: These instructions are only valid for cocos2d-x v3.0-alpha0 or newer
So I suppose that I have downloaded the right package (windows 8.0 64bit).
The script has been moved to tools/project-creator/ and renamed to create_project.py. You can use the script the same way like
./create_project.py -p MyGame123 -k com.MyCompany.AwesomeGame -l cpp

Using system() cross platform. Compiling with cygwin and g++

I'm using cygwin and g++ under Windows 7 to compile my project. I've made a makefile to compile the project under Ubuntu. This is all working so far.
A function calls the Libre Office to convert some files. For this purpose i pass a command string to system().
Symptom
When I use the executable generated with cygwin a error occurs:
sh: C:\..\LibreOffice 3.6\program\soffice --headless --convert-to png:'draw_png_Export' add1.fodg : command not found
What irritates me is the fact, that it seems the command is passed to sh and not cmd
How can I make sure the executable build for Windows uses no sh?
I think you have two options.
First, stick with sh used by system() and use the path to LibreOffice in POSIX format.
C:\..\LibreOffice 3.6\program\soffice
will become
/cygdrive/c/../LibreOffice 3.6/program/soffice
You can also use the cygpath utility for this, as well.
The other option is to call LibreOffice via cmd:
cmd /c C:\..\LibreOffice 3.6\program\soffice args...