Re: Bug in new C++ driver?

From: Andrew Morrow <andrew.morrow@xxxxxxxxxxx>
To: "mongodb-user@xxxxxxxxxxxxxxxx" <mongodb-user@xxxxxxxxxxxxxxxx>
Date: Mon, 9 May 2016 11:25:58 -0400
Why ads?
Hi -

Could you please provide some additional information that will help us
diagnose the issue? In particular, could you provide:

- The CMake invocation you used to generate the C++11 driver build system,
and its output.
- The make/ninja or other commend you executed to build and install the
C++11 driver
- The command line that you used to build the application and link it to
the installed C++11 driver.

That abi:cxx11 tag makes me think that you have mixed libstdc++ ABI
versions somewhere.

Thanks,
Andrew


On Mon, May 9, 2016 at 7:17 AM, Xauxatz <claus.skaaning@xxxxxxxxx> wrote:

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+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to mongodb-user@xxxxxxxxxxxxxxxx.
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
<https://groups.google.com/d/msgid/mongodb-user/492a1364-1c12-4b36-ab80-9eebda3bcc19%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.


-- 
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+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to mongodb-user@xxxxxxxxxxxxxxxx.
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/CAHX05qFKYp7PLfX-wf%3DcAH8K2nFFf1XOKTMEPxcjiKo%3D7%2BbqpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Why ads?