Can't install libraries on Visual Studio code - vcpkg

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.

Related

curl.lib missing (Visual Studio 2019, 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.

How do i install socket.io c++ client library

I am trying to use socket.io c++ client implementation.I have never used an external library before with c++ so im confused.
This is the library i am trying to use:
https://github.com/socketio/socket.io-client-cpp
So i followed this instructions:
https://github.com/socketio/socket.io-client-cpp/blob/master/INSTALL.md
Installed boost and cmake as its stated and i guess it is fine.
My problem is with the 4th step and the rest of it.
If i run
make install
console throws:
make: *** No rule to make target 'install'. Stop.
current dir looks like:
To be honest i didnt understand what is 5th step, and the installation process in general.How should i include this library in my main.cpp so that i can use it ? What are those visual studio project files generated ?
Edit:
If i open INSTALL visual studio project file and build INSTALL project from solution explorer,i get this error:
Edit2:
After updating websocketpp library now i get this error after build:
if you are having lots of issues this is how i solved mine:
boost 1.7.0 was not working for me.I installed boost 1.65.0
after that update websocketpp library
go to C:\socket.io-client-cpp\.git\modules\lib\websocketpp directory with command line and type
git pull origin master
so after changing boost version to 1.65.0 and updating websocketpp finally it built succesfully.

OSX: Build MySQL C++ Connector

I've downloaded the mysql connector c++ for OSX in order to build it. I was experiencing the problem in MySQL XCode C++ Connector Bad Access code=13, so I followed the MySQL Connector/C++ OS X 10.9 Mavericks and XCODE 5.0.2 solution.
The problem is that when I execute the cmake as is described in the README file and in the previous post i get:
CMake Error: The source directory (...)/mysql-connector-c++-1.0.5-osx10.5-x86-64bit" does not appear to contain CMakeLists.txt.
First I searched for the file in the children directories but no luck. I've googled this error but I couldn't get an solution to it. Can you help me?
I realise this is a very old topic but I ran into this issue just now and I'd like to share my answer in case someone else stables upon this. You can get the source from git using:
git clone https://github.com/mysql/mysql-connector-cpp.git

MinGW c++ compiler zlib1.dll missing error?

I have just started to learn C++ for school, and I'm trying to download the compiler MinGW to compile my source code. However, every time I try to compile a program an error message shows up saying that zlib1.dll is missing.
This is the error message
the program can't start because zlib1.dll is missing from your computer
I have tried installing/re-installing with no luck. I don't know what's the problem here?
Can anyone please help me with this problem as I have some homework that I need to do but I can't without the compiler.
Thanks.
I had this same problem, but fixed it like this:
I ran the MinGW Installation Manager (e.g. C:\MinGW\libexec\mingw-get\guimain.exe).
I navigated to All Packages -> MinGW -> MinGW Libraries.
I checked the boxes next to mingw32-libz (dev & dll).
I went to Installation -> Apply Changes.
Now everything worked properly.
From the MinGW getting started; an automated GUI installer assistant, or use mingw-get, is available (installed as "MinGW Installation Manager") and can be used to install additional libraries and manage dependencies. For the missing zlib libraries, add the mingw32-libz libraries as required.
It seems to have been an issue previously here on super user. It seems you may be able to get them directly from the zlib website. Open Babel has some info on it being required to be copied afterwards (together with some other dlls).
Alternatives include using the mingw-w64 distros from nuwen or mingw-builds. I've never had any issue getting these up and going. They also support x64 builds.
Had same problem here, I've just used mingw-get install mingw32-libzat the cmd and it worked.

Boost "no such file or directory"

I'm trying to set up my Code::Blocks work environment on a new computer and I'm having some problems. It's been a long time since I first did this, and now when I open my major project Boost is causing me problems.
I'm fairly new to C++ still and fixing this type of problem is something I have limited experience with.
When I open my project and try to compile it, I get this error:
fatal error: boost/algorithm/string.hpp: No such file or directory|
At this part of one of my header files:
#include <boost/algorithm/string.hpp>
I placed the Boost v1.51.0 library at C:\boost since that is where I'd had it on my other computer. My project is set to search that directory for additional includes but it doesn't seem to be finding the files?
My project used an older version of Boost previously but I doubt that's an issue.
I'm not sure how difficult it is to debug this problem with this limited information so if there's anything else I can provide please let me know.
I'm using Code::Blocks, and have just set up minGW and Visual C++ 2010.
In Ubuntu use
sudo apt-get install libboost-dev
Ensure that you have installed boost-devel package
In Centos execute as root:
yum install boost-devel
then
root#centos6 /]# find / -name boost
/usr/include/boost
/usr/lib64/boost
[root#centos6 /]#