Visual Studio 2015 RC: Missing ssl.hpp

Jun 5, 2015 at 8:40 PM
Edited Jun 5, 2015 at 8:40 PM
I'm trying to build v2.6 using Visual Studio 2015RC. I get 3 same errors because boost/asio/ssl.hpp isn't found. Shouldn't build work out of the box after Nuget does its restore? What am I missing?

Error C1083 Cannot open include file: 'boost/asio/ssl.hpp': No such file or directory cpprestsdk140 c:\sw\swbrestsdk\casablanca-2.6\release\include\cpprest\details\x509_cert_utilities.h 37
Jun 5, 2015 at 8:42 PM

Hi BSalita,

Did you make sure to do the package restore in or try building in Visual Studio to trigger the package restore? Can you look and see if the Boost packages are in the ‘packages’ folder under you solution directory?


Jun 6, 2015 at 9:02 AM
Yes, the files were automatically restored by Nuget. Nuget prompted to download the missing packages. The missing ssl.hpp file is in C:\sw\SwbRestSdk\casablanca-2.6\Release\src\build\vs14\packages\boost.\lib\native\include\boost\asio\ssl.hpp. In my mind, the issue is missing info in the project files about where to find the boost directory, boost includes and libs. I can manually add boost directories to project files but I thought this would all exist in the casablanca project files.

Directory of c:\sw\SwbRestSdk\casablanca-2.6\Release\src\build\vs14\packages

06/06/2015 09:48 AM <DIR> .
06/06/2015 09:48 AM <DIR> ..
06/05/2015 09:28 PM <DIR> boost.
06/05/2015 09:27 PM <DIR> boost_date_time-vc140.1.58.0-vs140rc
06/05/2015 09:27 PM <DIR> boost_regex-vc140.1.58.0-vs140rc
06/05/2015 09:27 PM <DIR> boost_system-vc140.1.58.0-vs140rc
06/05/2015 09:27 PM <DIR> openssl.v140.windesktop.msvcstl.static.rt-dyn.
06/05/2015 09:27 PM <DIR> openssl.v140.windesktop.msvcstl.static.rt-dyn.x64.
06/05/2015 09:27 PM <DIR> openssl.v140.windesktop.msvcstl.static.rt-dyn.x86.
06/05/2015 09:27 PM <DIR> zlib.v140.windesktop.msvcstl.static.rt-dyn.
           0 File(s)              0 bytes
          10 Dir(s)  16,330,063,872 bytes free
Jun 7, 2015 at 5:16 PM
Edited Jun 7, 2015 at 5:18 PM
I installed source from codeplex, not Nuget binaries. I went back and installed from Nuget and everything works as expected. I'm no longer blocked. That said, seems to me there still is an issue of the sources not compiling out of the box due to missing "additional includes" directory and maybe libs directory (haven't gotten that far to see).
Jun 8, 2015 at 5:38 PM
Hi BSalita,

To build the library from source you need to make sure you have downloaded/restored the build time NuGet package dependencies. This is automatically done for you the first time you build if you do so from within the Visual Studio IDE. However if you are building from the command line you need to manually restore the NuGet packages, like the Boost one, yourself. The instructions are all located here under the building on Windows documentation.