Installation error on Linux

Sep 27, 2013 at 6:43 PM
I am trying to install Casablanca on a Debian version x64 of Linux, following the Step-by-Step procedure detailed in the following article:
http://casablanca.codeplex.com/wikipage?title=Setup%20and%20Build%20on%20Linux&referringTitle=Documentation

I get the following errors at Step 5 Install GCC 4.8:

E: Unable to locate package g++-4.8
E: Couldn't find any package by regex 'g++-4.8'

Attempt to install GCC 4.9 produces the same Error

However, installation of GCC 4.7 is successful, but if I use GCC 4.7, then make all at Step 8 then fails:

nigel@debian:~/Cpp-REST-SDK/Release$ make all
make debug
make[1]: Entering directory /home/nigel/Cpp-REST-SDK/Release'
mkdir -p /home/nigel/Cpp-REST-SDK/Release/../Binaries/Debug64
make -C src
make[2]: Entering directory
/home/nigel/Cpp-REST-SDK/Release/src'
Compiling http/client/http_linux.cpp -> http/client/http_linux.Debug64.o
http/client/http_linux.cpp: In lambda function:
http/client/http_linux.cpp:386:25: error: ‘...’ handler must be the last handler for its try block [-fpermissive]
http/client/http_linux.cpp: In lambda function:
http/client/http_linux.cpp:425:25: error: ‘...’ handler must be the last handler for its try block [-fpermissive]
http/client/http_linux.cpp: In lambda function:
http/client/http_linux.cpp:651:33: error: ‘...’ handler must be the last handler for its try block [-fpermissive]
make[2]: *** [http/client/http_linux.Debug64.o] Error 1
make[2]: Leaving directory /home/nigel/Cpp-REST-SDK/Release/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory
/home/nigel/Cpp-REST-SDK/Release'
make: *** [all] Error 2

Can anyone please help with this problem?
Sep 28, 2013 at 5:04 AM
Hi,
I was not able to install it on Linux too so I may not be of too much help, but here are a few things:
  1. I did not know that GCC is at 4.9? Have they released a new version just recently?
  2. The rest of the errors you show most likely are because 4.7 did not have support for newer C++11 feature used in Casablanca.
GT.
Coordinator
Sep 30, 2013 at 7:46 PM
Hi, to be able to build C++Rest, it does require new C++11 features / bug fixes in g++-4.8.
The error you encountered during installing g++-4.8 is most likely because your Debian repository doesn't support g++-4.8 package yet.
The repo link on that doc is for Ubuntu, so I guess you just have to find a new one for Debian, or maybe you have to manually install them
http://packages.debian.org/sid/g++-4.8
or build from scratch http://gcc.gnu.org/install/.

Hong