VisualGDB how to support std c++

Sysprogs forums Forums VisualGDB VisualGDB how to support std c++

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #715
    Anonymous
    Participant

    Hi!
    in the ndk samples I add #include and get error:
    1>D:codingandroidAndroidProject1jnigraphgraph.h(5,18): fatal error : string: No such file or directory
    how to solved it in VisualGDB?

    #2873
    ket
    Participant

    Hi,

    You must tell the Android project to use the STL library.

    Please go to VisualGDB Project Properties and on the Makefile settings page choose the STL library version you wish to use (e.g. stlport_shared).
    You can read more about the different STL library versions from docsCPLUSPLUS-SUPPORT.html under your Android NDK install directory.

    #2874
    Anonymous
    Participant

    Thank for reply.
    I solved it by add
    APP_STL := gnustl_static
    in the Application.mk (if there is no Application.mk , you may create one).

    #2875
    ket
    Participant

    Hi,

    Yes, that is exactly what choosing the STL value in VisualGDB Project Properties does as well.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.