天天看點

error: ‘nullptr’ was not declared in this scope

網上說增加一個編譯選項:

-std=c++0x
或
 -std=c++11      

吾是cmake,一時也沒找到選項加入。幹脆使用了一個宏定義解決:

#define nullptr NULL      

繼續閱讀