ndk-build: undefined reference to .. errors when statically linking to libxml.a

前端 未结 5 793
终归单人心
终归单人心 2021-02-08 04:34

I get a lot of undefined reference to ... errors when I compile my single c++ source-file using the ndk-build tool. For the record I use NDK r6 on a linux host system.

F

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-08 05:23

    You had to add APP_STL := stlport_static to the Application.mk file, not Android.mk.

    EDIT: As far as I can see you haven't linked against stlport static library. So I think you should add something like -lstlport to LOCAL_LDLIBS.

提交回复
热议问题