QuickSander / ArduinoHttpServer

Server side minimalistic HTTP protocol implementation for the Arduino platform.
GNU General Public License v3.0
23 stars 11 forks source link

StreamHttpRequest.hpp Syntax Error #9

Closed vicyap closed 6 years ago

vicyap commented 6 years ago
In file included from lib/ArduinoHttpServer-0.1.1/src/ArduinoHttpServer.h:11,
                 from .build/uno/src/blinky.cpp:2:
lib/ArduinoHttpServer-0.1.1/src/internals/StreamHttpRequest.hpp: In constructor 'ArduinoHttpServer::StreamHttpRequest<MAX_BODY_LENGTH>::StreamHttpRequest(Stream&)':
lib/ArduinoHttpServer-0.1.1/src/internals/StreamHttpRequest.hpp:110: error: expected `(' before '{' token
lib/ArduinoHttpServer-0.1.1/src/internals/StreamHttpRequest.hpp:110: error: expected `;' before '}' token
lib/ArduinoHttpServer-0.1.1/src/internals/StreamHttpRequest.hpp: At global scope:
lib/ArduinoHttpServer-0.1.1/src/internals/StreamHttpRequest.hpp:110: error: expected unqualified-id before ',' token
lib/ArduinoHttpServer-0.1.1/src/internals/StreamHttpRequest.hpp:111: error: expected constructor, destructor, or type conversion before '(' token
QuickSander commented 6 years ago

Will look into this. Seems like the compiler you use cannot handle the POD initialize syntax with curly brackets.

QuickSander commented 6 years ago

What environment do you work with? So I can checkout the compiler it uses. Probably not a C++11 compiler.

vicyap commented 6 years ago

Yes, it seems your suspicion is correct.

I am using macOS 10.12.6 and the Arduino Classic IDE 1.0.6. That IDE ships with avr-gcc-4.3.2.

It works after I upgraded my compiler to avr-gcc-4.9.2.

QuickSander commented 6 years ago

Good to hear. Thanks.