Alternatives to mongocxx?

HI @Tharindu_Balasooriya,

Including this discussion, you have currently have four active topics which all seem related to your install issues.

It will be easier for someone to help if you can keep discussion for the same problem focused in a single topic. If you’ve solved an issue and moved on to a new problem and new topic, it would also be helpful to reply to the original topic with your solution (or choose one of the existing posts as a solution as a signal further help is not required).

I believe the problem you’ve quoted here is the same as Mongo cxx driver issue - undefined reference to `__imp__ZN7bsoncxx7v_, so it would be best not to fork that discussion. I would also keep this topic focused on your question of alternative C++ drivers for Windows.

Your issues appear to be with setting up your build environment, but if you want a comparison point (and are open to using Docker), you may find @wan’s Get Started project helpful: "Get Started" with MongoDB Atlas - #2 by wan.

The get-started-cxx repo sets up a working Linux development environment with some sample C++ code. You can set the MONGO_URI to any valid MongoDB connection string URI (Atlas, self-hosted, or locally hosted). However, since your end goal appears to be building Windows C++ apps using MinGW64 this may not be a productive direction to explore.

Regards,
Stennie