uSTL or STLPort for Android?

后端 未结 6 1457
忘掉有多难
忘掉有多难 2020-12-04 10:44

I\'m working with the Android NDK, and since it does not currently support the STL, I was wondering if there are any brilliant people out there who have had success with thi

6条回答
  •  悲哀的现实
    2020-12-04 11:30

    this is how I configured STLPort to work with Android Froyo.

    // The code
    // The set of definitions and includes for STLPort
    // They used defined() instead of #ifdef.
    #define _STLP_HAS_INCLUDE_NEXT  1
    #define _STLP_USE_MALLOC   1
    #define _STLP_USE_NO_IOSTREAMS  1
    #include 
    #include 
    #include 
    
    // Android.mk
    # For Android STL support
    LOCAL_C_INCLUDES += external/stlport/stlport
    LOCAL_SHARED_LIBRARIES += libstlport
    

    Andrew

提交回复
热议问题