mardi 5 mai 2015

Cause Compiler Error in Boost Library File

I am attempting to compile my C++ project in CodeBlocks on Mac OS. My project uses the Boost library optional.hpp and I am getting a compiler error because of it. I don't quite understand whats wrong because obviously the boost libraries should compile properly so maybe its something to do with my linking?

Maybe I haven't setup my project to use C++11 or etc correctly?

Compiler error:

/usr/local/include/boost/optional/optional.hpp|741|error: 'v' declared as a pointer to a reference of type 'optional &'|
/Users/me/Documents/Work/gps-proxy/gps-proxy/options.h|45|note: expanded from macro 'opt'|
/usr/local/include/boost/optional/optional.hpp|687|error: 'v' declared as a pointer to a reference of type 'optional &'|
/Users/samz/Documents/Work/gps-proxy/gps-proxy/options.h|45|note: expanded from macro 'opt'|
/usr/local/include/boost/optional/optional.hpp|715|error: 'v' declared as a pointer to a reference of type 'const optional &'|
/Users/samz/Documents/Work/gps-proxy/gps-proxy/options.h|45|note: expanded from macro 'opt'|

Aucun commentaire:

Enregistrer un commentaire