Installing mongodb cxx driver with Visual Studio 2019

Can you double check if you are supplying the include directories and link directories correctly? Here’s an article with older version of C++ driver that demonstrates Visual Studio setup with screenshots - Getting Started With MongoDB and C++ | MongoDB

Can you show what’s the error you are getting in Visual Studio?

Do you intendt to use static libraries or dynamic? Ensure that all components (your application, the C driver, and the C++ driver) are consistently using either static or dynamic libraries and the same runtime library settings. This consistency will help avoid linking and runtime issues.