mardi 23 février 2016

Cygwin - gcc compilation of symengine error using make - variadic templates

I wouldn't normally disturb people with a problem like this, but I've been fruitlessly Googling to no result. I'm installing symengine to my computer via cygwin, and the instructions tell you to do 'cmake .' then 'make'

/cygdrive/c/SDPB/sym/symengine/symengine_rcp.h:294:32: warning: variadic templates only available with -std=c++11 or -std=gnu++11
template<typename T_, typename ...Args>
                        ^
/cygdrive/c/SDPB/sym/symengine/symengine_rcp.h:295:37: error: expected ‘,’ or ‘...’ before ‘&&’ token
friend inline RCP<T_> make_rcp( Args&& ...args );
                             ^
/cygdrive/c/SDPB/sym/symengine/symengine_rcp.h:295:48: error: parameter packs not expanded with ‘...’:
friend inline RCP<T_> make_rcp( Args&& ...args );

I realise that this might be a very specific error, and not a common problem, but I was wondering as to how to enable c++11 or gnu++11 via make in this instance? Thank you in advance!

Aucun commentaire:

Enregistrer un commentaire