When I try to compile my C++ program, I get an error when linking with the MongoDB new C++ driver (mongocxx) that there is an undefined reference.
The problem is easy to reproduce. Just try to compile the test example with in the quickstart guide (https://github.com/mongodb/mongo-cxx-driver/wiki/Quickstart-Guide-(New-Driver)). This is the error code:
hellomongo.cpp:(.text+0x3f): undefined reference to `mongocxx::v_noabi::uri::k_default_uri[abi:cxx11]'
I am using the newest 3.0.1 version of the C++ driver. The error was also there with 3.0.0.
Host: Ubuntu 64 bit
gcc: 5.1.1
Thanks for any help!
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.org/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/492a1364-1c12-4b36-ab80-9eebda3bcc19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[ 3%] Performing install step for 'EP_mnmlstc_core'
CMake Error at /home/osboxes/VisualGDB/d/Code/mongo-cxx-driver/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-install.cmake:16 (message):
Command failed: 2
'make' 'install'
See also
/home/osboxes/VisualGDB/d/Code/mongo-cxx-driver/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-install-*.log
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/3faaba52-2356-4c65-b442-98184e5b0996%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/25c3c4a2-11ce-4342-b9c1-a343b177998d%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "mongodb-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongodb-user/BQvTonyD9pE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/CAHX05qHJ0V0%2B2VhExhhAAHpEKhUnt6_FxfxasYmmODgCbsZQCQ%40mail.gmail.com.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/c6959d6e-991f-49fd-9f00-040dbb809745%40googlegroups.com.