<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:03:56 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CXX-1789] Issues using C++ driver in Visual Studio projects</title>
                <link>https://jira.mongodb.org/browse/CXX-1789</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;For the past two days I have tried to build and test mongocxx on two different Windows 10 machines, one using VS2015 and the other using VS2017. The builds install without errors (though had initial issues with&#160;ENABLE_EXTRA_ALIGNMENT). However, once I try to build the exact test code from the MongoDB installation guide (&lt;a href=&quot;http://mongocxx.org/mongocxx-v3/installation/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://mongocxx.org/mongocxx-v3/installation/&lt;/a&gt;), I get the following linker error:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;error LNK2001: unresolved external symbol &quot;public: static class std::basic_string&amp;lt;char,struct std::char_traits&amp;lt;char&amp;gt;,class std::allocator&amp;lt;char&amp;gt; &amp;gt; const mongocxx::v_noabi::uri::k_default_uri&quot; (?k_default_uri@uri@v_noabi@mongocxx@@2V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@B)&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I have rebuilt with boost 1.59, boost 1.68, boost 1.70, and using C++17 with no boost.&lt;/p&gt;

&lt;p&gt;I have tested from builds with mongocxx 3.4.0 with mongoc 1.14.0, and mongocxx 3.3.1 with mongoc 1.10.1, and this is always the error I end up at.&lt;/p&gt;

&lt;p&gt;I know Visual Studio sees mongocxx.lib, because if I remove it I get a ton of linker errors instead of just one.&lt;/p&gt;

&lt;p&gt;The one and ONLY way I got the test program to run was to build mongocxx with static libraries, and in the test program link them along with the &lt;ins&gt;shared&lt;/ins&gt;&#160;libraries for the mongo c driver. However, that doesn&apos;t seem like the right solution because as the installation guide says:&lt;/p&gt;

&lt;p&gt;&quot;Linking an application against both shared&#160;&lt;tt&gt;libmongoc&lt;/tt&gt;&#160;and static&#160;&lt;tt&gt;mongocxx&lt;/tt&gt;&#160;is not supported, nor is linking against both static&#160;&lt;tt&gt;libmongoc&lt;/tt&gt;&#160;and shared&#160;&lt;tt&gt;mongocxx&lt;/tt&gt;.&quot;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;What is also annoying is that if I open up mongocxx.lib and search for &quot;?k_default_uri@uri...&quot; I find it. So its in there. But something is wrong apparently.&lt;/p&gt;

&lt;p&gt;Note that if I comment out everything below the first line in the main function (everything below &quot;mongocxx::instance inst{};&quot;), then it compiles fine, so its specifically this part that it is unable to resolve: &quot;mongocxx::uri{}&quot;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Is something being built as 32 bit that I don&apos;t realize? Or something being built in release mode that I don&apos;t realize? My mongocxx and mongo c builds all say Debug/64 bit, but maybe there is something I&apos;m not seeing&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Here are my cmake commands for the c driver and cxx driver respectively:&lt;/p&gt;

&lt;p&gt;cmake -G &quot;Visual Studio 15 2017 Win64&quot; &quot;-DCMAKE_BUILD_TYPE=Debug&quot; &quot;-DENABLE_EXTRA_ALIGNMENT=OFF&quot; &quot;-DCMAKE_INSTALL_PREFIX=C:\&amp;lt;path removed&amp;gt;\mongo-c-driver&quot; &quot;-DCMAKE_PREFIX_PATH=C:\&amp;lt;path removed&amp;gt;\mongo-c-driver&quot; ..&lt;/p&gt;

&lt;p&gt;cmake -G &quot;Visual Studio 15 2017 Win64&quot; &quot;-DCMAKE_BUILD_TYPE=Debug&quot; &quot;-DBSONCXX_POLY_USE_BOOST=1&quot; &quot;-DCMAKE_INSTALL_PREFIX=C:\&amp;lt;path removed&amp;gt;\mongo-cxx-driver&quot; &quot;-DCMAKE_PREFIX_PATH=C:\&amp;lt;path removed&amp;gt;\mongo-c-driver&quot; &quot;-DBOOST_ROOT=C:\&amp;lt;path removed&amp;gt;\boost_1_68_0&quot; ..&lt;/p&gt;

&lt;p&gt;And after each of these I run the following:&lt;/p&gt;

&lt;p&gt;msbuild.exe /p:Configuration=Debug ALL_BUILD.vcxproj&lt;/p&gt;

&lt;p&gt;msbuild.exe /p:Configuration=Debug INSTALL.vcxproj&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;And these are the relevant properties from my VS project:&lt;/p&gt;

&lt;p&gt;&amp;lt;ItemDefinitionGroup Condition=&quot;&apos;$(Configuration)|$(Platform)&apos;==&apos;Debug|x64&apos;&quot;&amp;gt;&lt;br/&gt;
 &amp;lt;ClCompile&amp;gt;&lt;br/&gt;
 &amp;lt;WarningLevel&amp;gt;Level3&amp;lt;/WarningLevel&amp;gt;&lt;br/&gt;
 &amp;lt;Optimization&amp;gt;Disabled&amp;lt;/Optimization&amp;gt;&lt;br/&gt;
 &amp;lt;SDLCheck&amp;gt;true&amp;lt;/SDLCheck&amp;gt;&lt;br/&gt;
 &amp;lt;ConformanceMode&amp;gt;true&amp;lt;/ConformanceMode&amp;gt;&lt;br/&gt;
 &amp;lt;AdditionalIncludeDirectories&amp;gt;$(ProjectDir)..\..\..\libraries\boost_1_68_0;$(ProjectDir)..\..\..\libraries\mongo-cxx-driver\include\mongocxx\v_noabi;$(ProjectDir)..\..\..\libraries\mongo-c-driver\include\include\libmongoc-1.0;$(ProjectDir)..\..\..\libraries\mongo-c-driver\include\libbson-1.0;$(ProjectDir)..\..\..\libraries\mongo-cxx-driver\include\bsoncxx\v_noabi&amp;lt;/AdditionalIncludeDirectories&amp;gt;&lt;br/&gt;
 &amp;lt;PreprocessorDefinitions&amp;gt;MONGOCXX_STATIC;BSONCXX_STATIC;MONGOC_STATIC;DBSON_STATIC;%(PreprocessorDefinitions)&amp;lt;/PreprocessorDefinitions&amp;gt;&lt;br/&gt;
 &amp;lt;/ClCompile&amp;gt;&lt;br/&gt;
 &amp;lt;Link&amp;gt;&lt;br/&gt;
 &amp;lt;AdditionalLibraryDirectories&amp;gt;$(ProjectDir)..\..\..\libraries\boost_1_68_0\stage\lib;$(ProjectDir)..\..\..\libraries\mongo-c-driver\lib;$(ProjectDir)..\..\..\libraries\mongo-cxx-driver\lib;%(AdditionalLibraryDirectories)&amp;lt;/AdditionalLibraryDirectories&amp;gt;&lt;br/&gt;
 &amp;lt;AdditionalDependencies&amp;gt;mongocxx.lib;bsoncxx.lib;mongoc-static-1.0.lib;bson-1.0.lib;%(AdditionalDependencies)&amp;lt;/AdditionalDependencies&amp;gt;&lt;br/&gt;
 &amp;lt;/Link&amp;gt;&lt;br/&gt;
 &amp;lt;/ItemDefinitionGroup&amp;gt;&lt;/p&gt;</description>
                <environment>Windows 10 64 bit</environment>
        <key id="802869">CXX-1789</key>
            <summary>Issues using C++ driver in Visual Studio projects</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13203">Gone away</resolution>
                                        <assignee username="adrian.dole@mongodb.com">Adrian Dole</assignee>
                                    <reporter username="mason">Mason Hieb</reporter>
                        <labels>
                            <label>rp-track</label>
                            <label>size-medium</label>
                    </labels>
                <created>Fri, 14 Jun 2019 15:14:33 +0000</created>
                <updated>Fri, 27 Oct 2023 19:48:17 +0000</updated>
                            <resolved>Tue, 26 Sep 2023 20:53:33 +0000</resolved>
                                    <version>3.3.1</version>
                    <version>3.4.0</version>
                                                    <component>Documentation</component>
                                        <votes>1</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="5732831" author="JIRAUSER1273847" created="Tue, 26 Sep 2023 20:53:33 +0000"  >&lt;p&gt;Cannot reproduce as of:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;mongoc 1.24.4&lt;/li&gt;
	&lt;li&gt;mongocxx 3.8.0&lt;/li&gt;
	&lt;li&gt;Visual Studio 17&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Example program successfully builds from Visual Studio using shared libraries.&lt;/p&gt;</comment>
                            <comment id="5732818" author="JIRAUSER1273847" created="Tue, 26 Sep 2023 20:51:07 +0000"  >&lt;p&gt;Cannot reproduce as of:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;mongoc 1.24.4&lt;/li&gt;
	&lt;li&gt;mongocxx 3.8.0&lt;/li&gt;
	&lt;li&gt;Visual Studio 17&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Example program successfully builds from Visual Studio using shared libraries.&lt;/p&gt;</comment>
                            <comment id="3051914" author="mason" created="Wed, 22 Apr 2020 21:44:17 +0000"  >&lt;p&gt;Yeah its been a while but it is likely an issue when building the test program through the IDE&lt;/p&gt;</comment>
                            <comment id="3004374" author="kevin.albertson" created="Fri, 27 Mar 2020 15:34:41 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mason&quot; class=&quot;user-hover&quot; rel=&quot;mason&quot;&gt;mason&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ilkash2%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;ilkash2@gmail.com&quot;&gt;ilkash2@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Apologies for the delayed response. To clarify, the test you are referring to is the reference to test.cpp in Step 6 of the &lt;a href=&quot;http://mongocxx.org/mongocxx-v3/installation/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;installation instructions&lt;/a&gt;, correct?&lt;/p&gt;

&lt;p&gt;In case it is helpful, I am able to build it on Windows with cmake. I installed the C driver with the following:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;cmake -G &quot;Visual Studio 16 2019&quot; -DCMAKE_INSTALL_PREFIX=&quot;C:\mongo-c-driver-1.16.2&quot; -DENABLE_EXTRA_ALIGNMENT=OFF ..&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;cmake --build . --target INSTALL --config Debug&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;And the C++ driver with the following:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;cmake -G &quot;Visual Studio 16 2019&quot; -DCMAKE_PREFIX_PATH=&quot;C:\mongo-c-driver-1.16.2&quot; -DBOOST_ROOT=&quot;C:\boost_1_72_0&quot; -DCMAKE_INSTALL_PREFIX=&quot;C:\mongo-cxx-driver-3.4.1&quot; ..&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;cmake --build . --target ALL_BUILD --config Debug&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;cmake --build . --target INSTALL --config Debug&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;Then, created a CMakeLists.txt for test.cpp:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;cmake_minimum_required (VERSION 1.0.0)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;project (test LANGUAGES CXX)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;add_executable (test test.cpp)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;find_package(Boost REQUIRED)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;target_include_directories(test PRIVATE ${Boost_INCLUDE_DIRS})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;find_package(libmongocxx REQUIRED)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;target_include_directories(test PRIVATE ${LIBMONGOCXX_INCLUDE_DIRS})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;target_link_libraries(test PRIVATE ${LIBMONGOCXX_LIBRARIES})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;target_compile_definitions(test PRIVATE ${LIBMONGOCXX_DEFINITIONS})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;And compiled it with the following:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;cmake -DCMAKE_PREFIX_PATH=&quot;C:\mongo-c-driver-1.16.2;C:\mongo-cxx-driver-3.4.1;C:\boost_1_72_0&quot; ..&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;cmake --build . --target ALL_BUILD --config Debug&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;So I assume this is only an issue when building through the IDE itself with the manually modified .vcxproj file?&lt;/p&gt;

&lt;p&gt;The documentation for building precedes the current team working on the C++ driver, and I do agree it needs improved.&lt;/p&gt;</comment>
                            <comment id="2981126" author="mason" created="Mon, 16 Mar 2020 14:04:22 +0000"  >&lt;p&gt;1. The documentation explaining that you need to use those dependencies exists, but its the documentation for libmongoc:&#160;&lt;a href=&quot;http://mongoc.org/libmongoc/current/visual-studio-guide.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://mongoc.org/libmongoc/current/visual-studio-guide.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(I didn&apos;t find that libmongoc guide until I had already figured out the dependencies from some stackexchange threads, so perhaps there might be a better way to present the information in the official MongoDB guide)&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;2. It looks like it&apos;s status has been updated just now from &quot;Open&quot; to &quot;Needs Triage&quot;&lt;/p&gt;</comment>
                            <comment id="2981092" author="ilkash2@gmail.com" created="Mon, 16 Mar 2020 13:55:20 +0000"  >&lt;p&gt;@Mason Hieb: yes, it helps, thank you so much! I will try to add this driver to my project.&lt;/p&gt;

&lt;p&gt;However, here are some questions:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Why do we need additional dependencies, such as &quot;ws2_32.lib Secur32.lib Crypt32.lib BCrypt.lib Dnsapi.lib&quot; ? The test project doesn&apos;t compile without it. It is strange that it is not mentioned in the official MongoDB guide.&lt;/li&gt;
	&lt;li&gt;Could you please vote for the issue to raise awareness in Mongo-CXX team? This ticket is assigned to no one, so no one is trying to help us here and fix this issue in the next release.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="2960450" author="mason" created="Tue, 10 Mar 2020 15:03:31 +0000"  >&lt;p&gt;Ilya: did you see my comment? Does your project require MongoDB to be dynamically linked?&lt;/p&gt;</comment>
                            <comment id="2960021" author="ilkash2@gmail.com" created="Tue, 10 Mar 2020 12:04:26 +0000"  >&lt;p&gt;I experience the same issue in VS2019.&#160;&lt;/p&gt;

&lt;p&gt;I&apos;ve tried at least 3 versions of boost (started with 1.56.0, as it is described in the documentation and during the CMake build. Then I tried with 1.59 as it solves one issue and then 1.60 as it solves another one).&lt;/p&gt;

&lt;p&gt;Then I stuck with 2 errors in 3.4.0 that were solved in 3.4.1.&#160;&lt;/p&gt;

&lt;p&gt;And now I&apos;m stuck here with one unresolved external symbol. And this issue was not assigned to anyone for 8 months, so probably it would be solved somewhere in 2021&#160;&lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="2413285" author="mason" created="Mon, 9 Sep 2019 18:21:57 +0000"  >&lt;p&gt;Here is the solution I found and am using:&#160;I don&apos;t know if it solves the problem in terms of dynamic linking but I built the cxx connector with static libraries (using -DBUILD_SHARED_LIBS=OFF) and then placed all of these in my additional dependencies: mongocxx-static.lib bsoncxx-static.lib mongoc-static-1.0.lib bson-static-1.0.lib ws2_32.lib Secur32.lib Crypt32.lib BCrypt.lib Dnsapi.lib And now I can build and run the test program without issue.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1317726">CXX-1997</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="686676">CXX-1731</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CXX-2634</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_21553" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Quarter</customfieldname>
                        <customfieldvalues>
                                        <label>FY24Q3</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr1k1p:fzzy</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>