I have downloaded the c++ rest SDK 'casablanca' code for linux platform and using it on ubuntu 12.04.
I had completed all the setup, build, and run tests steps and all the test has been succesfully passed.
after that i have written my code for HTTP request. I want to know how should i include the path and compile my code on Linux.
please find my code attached.
the same code is running successfully on VS2012 after setting path on windows platform.
when i am compiling my code by following command
g++ -std=c++11 -I /home/tushar/Desktop/casablanca/rest/Release/include/ -lcasablanca -lboost_thread -Wno-sign-compare -Wno-unused-parameter code.cpp
i am getting the error:
please find the log file attached.
Comments: Hi tusharg20, Invoking g++ directly should be fine. For bigger projects we tend to create GNU makefiles (you can find examples if you search for Makefile files) in the source tree. You code fails because you're using wide string literals on Linux. To make your code cross-platform, use the U macro. That is, instead of writing ``` http_client client(L"https://maps.googleapis.com...") ``` do ``` http_client client(U("https://maps.googleapis.com...")) ``` That should work!
I had completed all the setup, build, and run tests steps and all the test has been succesfully passed.
after that i have written my code for HTTP request. I want to know how should i include the path and compile my code on Linux.
please find my code attached.
the same code is running successfully on VS2012 after setting path on windows platform.
when i am compiling my code by following command
g++ -std=c++11 -I /home/tushar/Desktop/casablanca/rest/Release/include/ -lcasablanca -lboost_thread -Wno-sign-compare -Wno-unused-parameter code.cpp
i am getting the error:
please find the log file attached.
Comments: Hi tusharg20, Invoking g++ directly should be fine. For bigger projects we tend to create GNU makefiles (you can find examples if you search for Makefile files) in the source tree. You code fails because you're using wide string literals on Linux. To make your code cross-platform, use the U macro. That is, instead of writing ``` http_client client(L"https://maps.googleapis.com...") ``` do ``` http_client client(U("https://maps.googleapis.com...")) ``` That should work!