static linking mongocxx missing sasl
问题 I am trying to build a simple mongocxx application and I am having linking errors: -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") -- Configuring done -- Generating done -- Build files have been written to: /code/build [ 50%] Linking CXX executable test_new_mongo ../mongo_cxx_driver/lib/libmongoc-static-1.0.a(mongoc-client.c.o): In function `_mongoc_get_rr_search': mongoc-client.c:(.text+0xa1): undefined reference to `__res_nsearch' mongoc-client.c:(.text+0xbd):