NDK error transplant c ++ code that encountered 11

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qiuchangyong/article/details/89442862

Today, an open source attempt to transplant in NDK in c ++ code, found that the c ++ code uses the c ++ 11 new features, resulting in compilation error. Reported what nullptr, shared_ptr no definition, there Android.mk add that LOCAL_CFLAGS + = -std = c ++ 11 on it.

c ++ 11 new features are in addition to c ++ 98's. This injection of life into a more powerful c ++ language.

 

 

Guess you like

Origin blog.csdn.net/qiuchangyong/article/details/89442862