2013-03-16 4 views
5

Qualche compilatore Android ndk, basato su gcc 4.7, supporta to_string, stof e altre funzioni di conversione stringa?Supporto stringa C++ per Android per stringa_stringa, stof, ecc.

Nel NDK che sto usando ho trovato la funzione in ext/vstring.h. Ma la funzione è avvolto in

#if (defined(__GXX_EXPERIMENTAL_CXX0X__) && defined(_GLIBCXX_USE_C99)) 

sto Abilitazione -std=c++11 bandiera.

Come abilitare GXX_EXPERIMENTAL_CXX0X?

risposta

0

ho attivato il programma semplicemente con l'aggiunta di come un simbolo in Project proprietà-> C/C++ Generale-> Symbols-> GNU C++

Ho anche aggiunto questo Android.mk: LOCAL_CPPFLAGS: = - std = gnu ++ 0x