c++ - Cannot use nullptr in Shared Library (Android, iOS) in Visual Studio 2015 -
i created cross-platform shared library (android, ios) in visual studio 2015 got compiler error "use of undeclared identifier 'nullptr'" when add following line in cpp of shared library , tried compile android library:
void* p = nullptr;
that quite strange since nullptr keyword since c++11.
what makes stranger when created cross-platform opengl es2 application (android, ios, windows universal) , added line again (in simplerenderer.cpp) , compiled android app, got complied!
so guess there should way use nullptr (and think there should other problems well) in android part of shared library (android, ios) since works in opengl es2 application (android, ios, windows universal). settings need adjusted. know how make work?
i found it! in project property window, go c/c++ > language , set c++ language standard c++11.
sorry having asked stupid question.
Comments
Post a Comment