{"id":2477,"date":"2019-03-16T20:45:51","date_gmt":"2019-03-17T00:45:51","guid":{"rendered":"http:\/\/ninecrows.com\/career\/?p=2477"},"modified":"2019-03-16T22:19:57","modified_gmt":"2019-03-17T02:19:57","slug":"giving-up-on-mongodb-from-c-for-now","status":"publish","type":"post","link":"https:\/\/ninecrows.com\/career\/2019\/03\/16\/giving-up-on-mongodb-from-c-for-now\/","title":{"rendered":"Giving up on MongoDB from C++ for now"},"content":{"rendered":"\n<p>I&#8217;ve tried building this thing using CMake and Visual Studio  and CMake seems to keep picking up cygwin headers for Visual Studio builds and I can&#8217;t seem to make things better. For now not worth the pain. I&#8217;m probably going back to C# with C++\/CLI to get this working with C APIs and C# for MongoDB access.<\/p>\n\n\n\n<p>I&#8217;m certain that I could get this building with enough effort. The code looks reasonable and I can put together the projects myself. I&#8217;m not all that inclined to go there though as I&#8217;d have to re-do this every time through. I&#8217;m not familiar enough with CMake to try modifying that part of the process.<\/p>\n\n\n\n<p>Ok&#8230;not quite giving up. I did find that CMake appears to be adding a cygwin header folder to the projects. If I manually remove this from them the build goes further. The default build configuration appears to be 32 bit which is also an issue for me. Perhaps I&#8217;ll do a little more before I completely give up.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve tried building this thing using CMake and Visual Studio and CMake seems to keep picking up cygwin headers for Visual Studio builds and I can&#8217;t seem to make things better. For now not worth the pain. I&#8217;m probably going back to C# with C++\/CLI to get this working with C APIs and C# for &hellip; <a href=\"https:\/\/ninecrows.com\/career\/2019\/03\/16\/giving-up-on-mongodb-from-c-for-now\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Giving up on MongoDB from C++ for now<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[72,43,73,2,22,7],"tags":[],"class_list":["post-2477","post","type-post","status-publish","format-standard","hentry","category-c-topics","category-c","category-mongodb","category-projects","category-sandbox","category-topics"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7F2Qc-DX","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/2477"}],"collection":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/comments?post=2477"}],"version-history":[{"count":3,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/2477\/revisions"}],"predecessor-version":[{"id":2480,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/2477\/revisions\/2480"}],"wp:attachment":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/media?parent=2477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/categories?post=2477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/tags?post=2477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}