Skip to content

Trying to build tag v2.8.0 as external project getting some compiler standard error #1200

Closed
@BotelhoVinicius

Description

Hello,
I'm trying to build the tag v2.8.0 due some target system restrictions and i'm using external_project to incorporate the cpprest on my build.
The problem is:
When i'm trying to build, i get some errors in C++11 standards, like:

In file included from /RamalMaisSync/.build/third_party/src/cpprestsdk/Release/src/pch/stdafx.h:119:0,
from /RamalMaisSync/.build/third_party/src/cpprestsdk/Release/src/http/client/http_client_msg.cpp:25:
/RamalMaisSync/.build/third_party/src/cpprestsdk/Release/include/cpprest/json.h:316:76: error: '<::' cannot begin a template-argument list [-fpermissive]
/RamalMaisSync/.build/third_party/src/cpprestsdk/Release/include/cpprest/json.h:316:76: note: '<:' is an alternate spelling for '['. Insert whitespace between '<' and '::'
/RamalMaisSync/.build/third_party/src/cpprestsdk/Release/include/cpprest/json.h:316:76: note: (if you use '-fpermissive' G++ will accept your code)
In file included from /RamalMaisSync/.build/third_party/src/cpprestsdk/Release/src/pch/stdafx.h:127:0,
from /RamalMaisSync/.build/third_party/src/cpprestsdk/Release/src/http/client/http_client_msg.cpp:25:
/RamalMaisSync/.build/third_party/src/cpprestsdk/Release/include/cpprest/details/web_utilities.h:48:24: error: '<::' cannot begin a template-argument list [-fpermissive]
/RamalMaisSync/.build/third_party/src/cpprestsdk/Release/include/cpprest/details/web_utilities.h:48:24: note: '<:' is an alternate spelling for '['. Insert whitespace between '<' and '::'
In file included from /RamalMaisSync/.build/third_party/src/cpprestsdk/Release/src/pch/stdafx.h:132:0,
from /RamalMaisSync/.build/third_party/src/cpprestsdk/Release/src/http/client/http_client_msg.cpp:25:
/RamalMaisSync/.build/third_party/src/cpprestsdk/Release/include/cpprest/http_client.h:732:20: error: '<::' cannot begin a template-argument list [-fpermissive]
/RamalMaisSync/.build/third_party/src/cpprestsdk/Release/include/cpprest/http_client.h:732:20: note: '<:' is an alternate spelling for '['. Insert whitespace between '<' and '::'
/RamalMaisSync/.build/third_party/src/cpprestsdk/Release/include/cpprest/http_client.h: In member function 'void web::http::client::http_client::add_handler(const std::function<pplx::taskweb::http::http_response(web::http::http_request, std::shared_ptrweb::http::http_pipeline_stage)>&)':
/RamalMaisSync/.build/third_party/src/cpprestsdk/Release/include/cpprest/http_client.h:447:44: error: '<::' cannot begin a template-argument list [-fpermissive]
/RamalMaisSync/.build/third_party/src/cpprestsdk/Release/include/cpprest/http_client.h:447:44: note: '<:' is an alternate spelling for '['. Insert whitespace between '<' and '::'
In file included from /RamalMaisSync/.build/third_party/src/cpprestsdk/Release/src/pch/stdafx.h:142:0,
from /RamalMaisSync/.build/third_party/src/cpprestsdk/Release/src/http/client/http_client_msg.cpp:25:
/RamalMaisSync/.build/third_party/src/cpprestsdk/Release/include/cpprest/ws_client.h: At global scope:
/RamalMaisSync/.build/third_party/src/cpprestsdk/Release/include/cpprest/ws_client.h:189:28: error: '<::' cannot begin a template-argument list [-fpermissive]
/RamalMaisSync/.build/third_party/src/cpprestsdk/Release/include/cpprest/ws_client.h:189:28: note: '<:' is an alternate spelling for '['. Insert whitespace between '<' and '::'

The build system is on top of a docker container with debian 7.11, gcc 4.7.2, glibc 2.13 and boost1.55.
Have anyone a track of whats going on?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions