Mongo new c++ driver error - c++

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.

I've replied to your identical question on the mongodb-user list:
https://groups.google.com/forum/#!topic/mongodb-user/BQvTonyD9pE

Related

Unable to run curlpp on Xcode

In C++ within Xcode I am using curlpp, yet I get prompted with the following error: Undefined symbol: curlpp::Cleanup::Cleanup(). I've read that I must add the following flags to the compiler: -lcurlpp, -lcurl. Yet, once I have added them, I still get the same issue.

Xcode 12 throwing new C++ errors when compiling mapbox-gl-native

I have always been able to compile a custom copy of mapbox-gl-native, but with the installation of Xcode 12 this has broken. I am getting the following errors:
No matching function for call to 'get'
How can I fix this C++ error that is showing? I am assuming this is happening because of updated Xcode tools.

FASTMM Debug Version with C++ Builder 10.x

Has anyone ever gotten FastMM4BCB.cpp to compile and work successfully with C++ Builder 10.1 or later?
I am using 10.2.3 and I keep getting the following error when I try and compile it in my application:
[C++ Error] typeinfo.h(154, 2): E2367 Can't inherit RTTI class from non-RTTI base 'exception'
It has been this way for YEARS and I can't seem to find a fix. I am trying to track down a memory leak issue.

Error when building the ANTLR4 C++ Demo (macOS Sierra)

When trying to compile and run the antlr4-cpp-demo with Xcode on macOS Sierra I get the following error:
TLexer lexer(&input); (!) Variable type 'antlrcpptest::TLexer' is an abstract class
As this is a demo I suppose it should work out of the box...
Any idea what is going wrong?
Check what exactly is causing the compiler to believe that TLexer is abstract. Probably it doesn't override a function that is abstract in one of its predecessors, which in turn indicates your are using a code generation jar and a C++ runtime that don't match. Did you download both from the ANTLR website?

cross compile qt5.5 for Raspbian jessie

I've been following this guide on how to cross compile QT for raspbian: http://exploreembedded.tumblr.com/post/115333857238/guide-to-cross-compile-qt-54-for-the-raspberry-pi
It's some months old, so certain changes have been made to fit it with Jessie and qt 5.5 instead of Wheezy and qt 5.4. However I've gotten down to the configure and make portion of the guide and I am completely stuck. When running $make, I'm getting a bunch of these errors:
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInOutCirc(double): error: undefined reference to 'sqrt'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeOutCirc(double): error: undefined reference to 'sqrt'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInCirc(double): error: undefined reference to 'sqrt'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeOutInSine(double): error: undefined reference to 'cos'
By googling, I've gotten some understand as to why this is happening (Looks like math library needs to be linked manually for some unexplained reason), but not as to how I can fix it. Ideas?
Since no one seemed to know the answer, I found another way of doing it that seems to work with some fiddling instead: https://wiki.qt.io/RaspberryPi2EGLFS