<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:01:07 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-1016] problem compiling helloworld.cpp</title>
                <link>https://jira.mongodb.org/browse/CXX-1016</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;I follow this tutorial &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/wiki/Quickstart-Guide-(New-Driver&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/wiki/Quickstart-Guide-(New-Driver&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;I build and install bson and mongoc library.&lt;/p&gt;

&lt;p&gt;When I build the hellomongo.cpp, I have this issue : &lt;br/&gt;
Error C2653 &apos;mongocxx&apos;&#160;: is not a class or a namespace name.&lt;/p&gt;

&lt;p&gt;Thanks for helps !&lt;/p&gt;
</description>
                <environment>cmake-gui &amp;amp; VS2015</environment>
        <key id="313974">CXX-1016</key>
            <summary>problem compiling helloworld.cpp</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="4">Incomplete</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="Johnny">Johnny Vana [X]</reporter>
                        <labels>
                            <label>c++</label>
                    </labels>
                <created>Sun, 4 Sep 2016 10:34:03 +0000</created>
                <updated>Wed, 11 Sep 2019 19:06:09 +0000</updated>
                            <resolved>Thu, 6 Oct 2016 15:55:23 +0000</resolved>
                                    <version>3.0.1</version>
                                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1401356" author="acm" created="Wed, 5 Oct 2016 20:55:41 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=Johnny&quot; class=&quot;user-hover&quot; rel=&quot;Johnny&quot;&gt;Johnny&lt;/a&gt; - That looks like a problem with libmongo-c, not mongocxx. Could we move this discussion to mongodb-user? I really don&apos;t think there is a problem with the driver build system - we are running automated regression tests of the build on windows, so we know it works, and many other users have built the driver on windows. There doesn&apos;t seem to be a specific issue to be addressed in this ticket - more overall difficulty using CMake on Windows. Is it OK with you if I close this ticket and we move to mongodb-user?&lt;/p&gt;</comment>
                            <comment id="1399205" author="johnny" created="Mon, 3 Oct 2016 20:32:00 +0000"  >&lt;p&gt;I up to libmongoc 1.4.2.&lt;br/&gt;
When I generate a sln project with cmake-gui and add for BSON and BSON_INCLUDE_DIR :  &quot;C:\mongo-c-driver&quot;, I have this message : &lt;br/&gt;
WARNING: Target &quot;test-replica-set&quot; requests linking to directory &quot;C:/mongo-c-driver&quot;.  Targets may link only to libraries.  CMake is dropping the item.&lt;br/&gt;
I link the libson librarie to c:/mongoc-driver as the howto :s&lt;/p&gt;</comment>
                            <comment id="1393159" author="johnny" created="Mon, 26 Sep 2016 04:43:55 +0000"  >&lt;p&gt;Yes, I build the install target in both Realease and Debug.&lt;br/&gt;
I clean up the solution and full rebuild but I stull have the same message &lt;/p&gt;</comment>
                            <comment id="1393027" author="acm" created="Sun, 25 Sep 2016 14:50:25 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=Johnny&quot; class=&quot;user-hover&quot; rel=&quot;Johnny&quot;&gt;Johnny&lt;/a&gt; - Did you build the INSTALL target? See &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/blob/master/appveyor.yml#L33&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/blob/master/appveyor.yml#L33&lt;/a&gt;. You need to do this so that the header files are properly installed somewhere. Note that you cannot simply rename config.hpp.in to config.hpp: the config.hpp.in file is a template file that CMake interpolates values into to produce a custom config.hpp header file. Once you have installed the driver somewhere (configure this with -DCMAKE_INSTALL_PREFIX argument to CMake), you should have a properly made config,hpp file.&lt;/p&gt;</comment>
                            <comment id="1392995" author="johnny" created="Sun, 25 Sep 2016 10:53:50 +0000"  >&lt;p&gt;I up to 3.0.2&lt;/p&gt;

&lt;p&gt;I try and I think the compiler find the libson and libmongoc libraries.&lt;br/&gt;
But now, I have one another message when I compile the hellomongo.cpp : bsoncxx/config/config.hpp file does not exist.&lt;br/&gt;
I go into the directory and found config.hpp.in, I rename it config.hpp, and now VS says : invalid preprocessor command &apos;cmakedefine&apos;&lt;/p&gt;</comment>
                            <comment id="1392558" author="acm" created="Sat, 24 Sep 2016 01:11:02 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=Johnny&quot; class=&quot;user-hover&quot; rel=&quot;Johnny&quot;&gt;Johnny&lt;/a&gt; - I&apos;m closing this ticket as I think the errors you are getting are expected, and I&apos;ve provided a workaround. If you need further help with this issue, please let us know and we can re-open the ticket.&lt;/p&gt;</comment>
                            <comment id="1390315" author="acm" created="Wed, 21 Sep 2016 20:49:53 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=Johnny&quot; class=&quot;user-hover&quot; rel=&quot;Johnny&quot;&gt;Johnny&lt;/a&gt; - I think I know what is going on. You are linking against the static library version of libbsoncxx (I know this because the static version is installed as lib/libmongocxx.lib, whereas the .lib for the DLL is installed as lib/mongocxx.lib. When you link an application statically to the bsoncxx or mongocxx libraries, you must &lt;b&gt;also&lt;/b&gt; link it to libbson and libmongoc, respectively. This is simply how static linking works - the libbsoncxx.lib and libmongocxx.lib static libraries only contain the symbols from the .cpp files that were compiled into it. The definitions for the libbson and libmongoc layer must be separately provided when linking your application. In general, the C++11 driver tries hard to make the use of libmongoc and libbson opaque, but it cannot do this at link time.&lt;/p&gt;

&lt;p&gt;My recommendations are to either:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Switch your application to link against the dynamic versions of libbsoncxx and libmongocxx, which can record a runtime dependency against the underlying C driver and therefore do not propagate a need to specify the underlying C driver libraries to the application. OR&lt;/li&gt;
	&lt;li&gt;Add libbson and libmongoc as link libraries to your application.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Could you please try one of the above and let me know if it resolves the issues for you?&lt;/p&gt;</comment>
                            <comment id="1389233" author="johnny" created="Tue, 20 Sep 2016 20:45:16 +0000"  >&lt;p&gt;the first 10 errors are :&lt;/p&gt;

&lt;p&gt;error LNK2019: symbole externe non r&#233;solu _bson_iter_init r&#233;f&#233;renc&#233; dans la fonction &quot;public: void __thiscall bsoncxx::v_noabi::builder::core::concatenate(class bsoncxx::v_noabi::document::view const &amp;amp;)&quot; (?concatenate@core@builder@v_noabi@bsoncxx@@QAEXABVview@document@34@@Z)&lt;br/&gt;
bson_builder.obj : error LNK2019: symbole externe non r&#233;solu _bson_oid_init r&#233;f&#233;renc&#233; dans la fonction __catch$?bson_eq_stream@@YAXPBU_bson_t@@ABVdocument@stream@builder@v_noabi@bsoncxx@@@Z$2&lt;br/&gt;
view.cpp.obj : error LNK2001: symbole externe non r&#233;solu _bson_iter_init&lt;br/&gt;
libbsoncxx.lib(oid.obj) : error LNK2001: symbole externe non r&#233;solu _bson_oid_init&lt;br/&gt;
view.cpp.obj : error LNK2001: symbole externe non r&#233;solu _bson_iter_init&lt;br/&gt;
bson_builder.obj : error LNK2019: symbole externe non r&#233;solu _bson_init r&#233;f&#233;renc&#233; dans la fonction __catch$?bson_eq_stream@@YAXPBU_bson_t@@ABVdocument@stream@builder@v_noabi@bsoncxx@@@Z$2&lt;br/&gt;
core.obj : error LNK2019: symbole externe non r&#233;solu _bson_iter_next r&#233;f&#233;renc&#233; dans la fonction &quot;public: void __thiscall bsoncxx::v_noabi::builder::core::concatenate(class bsoncxx::v_noabi::document::view const &amp;amp;)&quot; (?concatenate@core@builder@v_noabi@bsoncxx@@QAEXABVview@document@34@@Z)&lt;br/&gt;
libbsoncxx.lib(core.obj) : error LNK2001: symbole externe non r&#233;solu _bson_init&lt;br/&gt;
view.cpp.obj : error LNK2001: symbole externe non r&#233;solu _bson_iter_next&lt;br/&gt;
bson_builder.obj : error LNK2019: symbole externe non r&#233;solu _bson_destroy r&#233;f&#233;renc&#233; dans la fonction __catch$?bson_eq_stream@@YAXPBU_bson_t@@ABVdocument@stream@builder@v_noabi@bsoncxx@@@Z$2&lt;br/&gt;
element.cpp.obj : error LNK2001: symbole externe non r&#233;solu _bson_iter_next&lt;br/&gt;
libbsoncxx.lib(core.obj) : error LNK2001: symbole externe non r&#233;solu _bson_destroy&lt;br/&gt;
view.cpp.obj : error LNK2001: symbole externe non r&#233;solu _bson_iter_next&lt;br/&gt;
bson_builder.obj : error LNK2019: symbole externe non r&#233;solu _bson_get_data r&#233;f&#233;renc&#233; dans la fonction &quot;void __cdecl bson_eq_stream(struct _bson_t const *,class bsoncxx::v_noabi::builder::stream::document const &amp;amp;)&quot; (?bson_eq_stream@@YAXPBU_bson_t@@ABVdocument@stream@builder@v_noabi@bsoncxx@@@Z)&lt;br/&gt;
core.obj : error LNK2019: symbole externe non r&#233;solu _bson_free r&#233;f&#233;renc&#233; dans la fonction &quot;void __cdecl bsoncxx::v_noabi::builder::`anonymous namespace&apos;::bson_free_deleter(unsigned char *)&quot; (?bson_free_deleter@?A0xd4be65c7@builder@v_noabi@bsoncxx@@YAXPAE@Z)&lt;br/&gt;
libbsoncxx.lib(core.obj) : error LNK2001: symbole externe non r&#233;solu _bson_get_data&lt;br/&gt;
json.obj : error LNK2001: symbole externe non r&#233;solu _bson_free&lt;/p&gt;</comment>
                            <comment id="1386210" author="acm" created="Fri, 16 Sep 2016 13:54:11 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=Johnny&quot; class=&quot;user-hover&quot; rel=&quot;Johnny&quot;&gt;Johnny&lt;/a&gt; - Could you please paste the first 10 or so errors from your new clean build?&lt;/p&gt;</comment>
                            <comment id="1385414" author="johnny" created="Thu, 15 Sep 2016 16:12:57 +0000"  >&lt;p&gt;the both compile.&lt;/p&gt;

&lt;p&gt;I update VS2015 (update3.1), delete all driver files and restart compilation.&lt;br/&gt;
When I compile the mongocxx driver, I have 697 erros... It seems it comes from bson&lt;/p&gt;</comment>
                            <comment id="1385357" author="acm" created="Thu, 15 Sep 2016 15:27:38 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=Johnny&quot; class=&quot;user-hover&quot; rel=&quot;Johnny&quot;&gt;Johnny&lt;/a&gt; - Which one is working, the one with the mongocxx/client.hpp include, or the one without? Could you try both?&lt;/p&gt;</comment>
                            <comment id="1385342" author="johnny" created="Thu, 15 Sep 2016 15:21:42 +0000"  >&lt;p&gt;If I compile your hello word code, it is working&lt;/p&gt;</comment>
                            <comment id="1385160" author="acm" created="Thu, 15 Sep 2016 13:00:43 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=Johnny&quot; class=&quot;user-hover&quot; rel=&quot;Johnny&quot;&gt;Johnny&lt;/a&gt; - I believe that most recent error you posted has been fixed on the HEAD of the master branch, which is about to be released as 3.0.2. Could you please re-try with that. I still don&apos;t understand why you are getting messages that std::cout is not defined. What happens if you just reduce your example to just:&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;#include &amp;lt;iostream&amp;gt;&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;int main(int, char**) {&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;    std::cout &amp;lt;&amp;lt; &quot;Hello, World!\n&quot; &amp;lt;&amp;lt; std::endl;&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;}&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;What happens if you then extend it to:&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;#include &amp;lt;iostream&amp;gt;&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;#include &amp;lt;mongocxx/client.hpp&amp;gt;&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;int main(int, char**) {&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;    std::cout &amp;lt;&amp;lt; &quot;Hello, World!\n&quot; &amp;lt;&amp;lt; std::endl;&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;}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="1382352" author="johnny" created="Mon, 12 Sep 2016 19:32:01 +0000"  >&lt;p&gt;The first 3 errors are :&lt;br/&gt;
error C2017: s&#233;quence d&apos;&#233;chappement non conforme, &lt;br/&gt;
error C3688: suffixe litt&#233;ral non valide &apos;id1&apos;; op&#233;rateur litt&#233;ral ou mod&#232;le d&apos;op&#233;rateur litt&#233;ral &apos;operator &quot;&quot;id1&apos; introuvable,&lt;br/&gt;
error C2661: &apos;Catch::ResultBuilder::ResultBuilder&apos;&#160;: aucune fonction surcharg&#233;e ne n&#233;cessite 3 arguments in file json.cpp at line 69.&lt;br/&gt;
So I comment the line 69, and have the 51 issues.&lt;/p&gt;</comment>
                            <comment id="1381197" author="acm" created="Sat, 10 Sep 2016 22:32:05 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=Johnny&quot; class=&quot;user-hover&quot; rel=&quot;Johnny&quot;&gt;Johnny&lt;/a&gt; - Are these the first errors emitted in the build? Are there any earlier errors? In particular, errors about not being able to find headers to satisfy the #include statements? Also, please note that &quot;error C2039: &apos;cout&apos; : n&apos;est pas membre de &apos;std&apos;&quot; is very strange - it suggests that the compiler doesn&apos;t even see cout as a member of the std namespace.&lt;/p&gt;</comment>
                            <comment id="1378850" author="johnny" created="Wed, 7 Sep 2016 20:03:25 +0000"  >&lt;p&gt;I have configured, built and installed the driver with cmake-gui and VS2015, not by batch.&lt;br/&gt;
The libson and c driver path is C:/mongo-driver/&lt;br/&gt;
The boost version is 1.61 and his path C:/user/johnny/desktop/boost_1.61/&lt;/p&gt;

&lt;p&gt;The helloworld.cpp file : &lt;br/&gt;
#include &amp;lt;iostream&amp;gt;&lt;/p&gt;

&lt;p&gt;#include &amp;lt;bsoncxx/builder/stream/document.hpp&amp;gt;&lt;br/&gt;
#include &amp;lt;bsoncxx/json.hpp&amp;gt;&lt;/p&gt;

&lt;p&gt;#include &amp;lt;mongocxx/client.hpp&amp;gt;&lt;br/&gt;
#include &amp;lt;mongocxx/instance.hpp&amp;gt;&lt;/p&gt;

&lt;p&gt;int main(int, char**) {&lt;br/&gt;
    mongocxx::instance inst{};&lt;br/&gt;
    mongocxx::client conn{mongocxx::uri{}};&lt;/p&gt;

&lt;p&gt;    bsoncxx::builder::stream::document document{};&lt;/p&gt;

&lt;p&gt;    auto collection = conn&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;testdb&amp;quot;&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;testcollection&amp;quot;&amp;#93;&lt;/span&gt;;&lt;br/&gt;
    document &amp;lt;&amp;lt; &quot;hello&quot; &amp;lt;&amp;lt; &quot;world&quot;;&lt;/p&gt;

&lt;p&gt;    collection.insert_one(document.view());&lt;br/&gt;
    auto cursor = collection.find({});&lt;/p&gt;

&lt;p&gt;    for (auto&amp;amp;&amp;amp; doc : cursor) &lt;/p&gt;
{
        std::cout &amp;lt;&amp;lt; bsoncxx::to_json(doc) &amp;lt;&amp;lt; std::endl;
    }
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;I have 51 issue :s&lt;br/&gt;
error C2653: &apos;mongocxx&apos;&#160;: n&apos;est pas un nom de classe ni d&apos;espace de noms&lt;br/&gt;
error C2065: &apos;instance&apos;&#160;: identificateur non d&#233;clar&#233;&lt;br/&gt;
error C2146: erreur de syntaxe&#160;: absence de &apos;;&apos; avant l&apos;identificateur &apos;inst&apos;&lt;br/&gt;
error C2065: &apos;inst&apos;&#160;: identificateur non d&#233;clar&#233;&lt;br/&gt;
error C2653: &apos;mongocxx&apos;&#160;: n&apos;est pas un nom de classe ni d&apos;espace de noms&lt;br/&gt;
error C2065: &apos;client&apos;&#160;: identificateur non d&#233;clar&#233;&lt;br/&gt;
error C2146: erreur de syntaxe&#160;: absence de &apos;;&apos; avant l&apos;identificateur &apos;conn&apos;&lt;br/&gt;
error C2065: &apos;conn&apos;&#160;: identificateur non d&#233;clar&#233;&lt;br/&gt;
error C2065: &apos;uri&apos;&#160;: identificateur non d&#233;clar&#233;&lt;br/&gt;
error C2653: &apos;bsoncxx&apos;&#160;: n&apos;est pas un nom de classe ni d&apos;espace de noms&lt;br/&gt;
 error C2065: &apos;document&apos;&#160;: identificateur non d&#233;clar&#233;&lt;br/&gt;
error C2146: erreur de syntaxe&#160;: absence de &apos;;&apos; avant l&apos;identificateur &apos;document&apos;&lt;br/&gt;
error C2065: &apos;conn&apos;&#160;: identificateur non d&#233;clar&#233;&lt;br/&gt;
error C2065: &apos;document&apos;&#160;: identificateur non d&#233;clar&#233;&lt;br/&gt;
error C3536: &apos;collection&apos;&#160;: ne peut pas &#234;tre utilis&#233; avant d&apos;avoir &#233;t&#233; initialis&#233;&lt;br/&gt;
error C2228: la partie gauche de &apos;.insert_one&apos; doit avoir un class/struct/union&lt;br/&gt;
note: le type est &apos;int&apos;&lt;br/&gt;
error C2065: &apos;document&apos;&#160;: identificateur non d&#233;clar&#233;&lt;br/&gt;
error C2228: la partie gauche de &apos;.view&apos; doit avoir un class/struct/union&lt;br/&gt;
note: le type est &apos;unknown-type&apos;&lt;br/&gt;
error C2228: la partie gauche de &apos;.find&apos; doit avoir un class/struct/union&lt;br/&gt;
 note: le type est &apos;int&apos;&lt;br/&gt;
error C3536: &apos;cursor&apos;&#160;: ne peut pas &#234;tre utilis&#233; avant d&apos;avoir &#233;t&#233; initialis&#233;&lt;br/&gt;
 error C3861: &apos;&amp;lt;begin&amp;gt;&apos;&#160;: identificateur introuvable&lt;br/&gt;
error C3312: aucune fonction &apos;begin&apos; pouvant &#234;tre appel&#233;e n&apos;a &#233;t&#233; trouv&#233;e pour le type &apos;int&apos;&lt;br/&gt;
error C3861: &apos;&amp;lt;end&amp;gt;&apos;&#160;: identificateur introuvable&lt;br/&gt;
error C3312: aucune fonction &apos;end&apos; pouvant &#234;tre appel&#233;e n&apos;a &#233;t&#233; trouv&#233;e pour le type &apos;int&apos;&lt;br/&gt;
error C2039: &apos;cout&apos;&#160;: n&apos;est pas membre de &apos;std&apos;&lt;br/&gt;
\predefined c++ types (compiler internal)(209): note: voir la d&#233;claration de &apos;std&apos;&lt;br/&gt;
error C2065: &apos;cout&apos;&#160;: identificateur non d&#233;clar&#233;&lt;br/&gt;
error C2653: &apos;bsoncxx&apos;&#160;: n&apos;est pas un nom de classe ni d&apos;espace de noms&lt;br/&gt;
error C2065: &apos;doc&apos;&#160;: identificateur non d&#233;clar&#233;&lt;br/&gt;
error C3861: &apos;to_json&apos;&#160;: identificateur introuvable&lt;br/&gt;
 error C2039: &apos;endl&apos;&#160;: n&apos;est pas membre de &apos;std&apos;&lt;br/&gt;
predefined c++ types (compiler internal)(209): note: voir la d&#233;claration de &apos;std&apos;&lt;br/&gt;
error C2065: &apos;endl&apos;&#160;: identificateur non d&#233;clar&#233;&lt;/p&gt;

&lt;p&gt;Sorry for the French language&lt;/p&gt;</comment>
                            <comment id="1378217" author="david.golden" created="Wed, 7 Sep 2016 12:58:25 +0000"  >&lt;p&gt;Hello. Thanks for posting your issue.  Could you please include the lines you used to configure, build and install the mongocxx driver?  Also, could you please post the full helloworld.cpp file, the command line you used to compile it, and the full compiler output?&lt;/p&gt;

&lt;p&gt;Thank you!&lt;/p&gt;</comment>
                    </comments>
                    <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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrcd27:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1309">Platforms 2016-10-10</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>