How to use Asio (standalone from Boost) in Android NDK?

后端 未结 1 1040
遥遥无期
遥遥无期 2021-02-06 16:21

Asio (without Boost) is supposed to be usable with just the headers only right?

By default, Asio is a header-only library. (http://think-async.com)

相关标签:
1条回答
  • 2021-02-06 16:47

    Here's what I did.

    Application.mk

    APP_STL := gnustl_static
    APP_CFLAGS += -DBOOST_DATE_TIME_NO_LIB -DBOOST_REGEX_NO_LIB
    APP_CPPFLAGS += -fexceptions
    

    The clues and hints were all over Stack Overflow. Once pieced together, it worked!

    0 讨论(0)
提交回复
热议问题