<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:00:51 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-944] mongocxx::database::stats() causes error LNK2019: unresolved external symbol </title>
                <link>https://jira.mongodb.org/browse/CXX-944</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;&lt;tt&gt;bsoncxx::document::value statistics = db.stats();&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;gives me this link error:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;stats_and_info.obj : error LNK2019: unresolved external symbol &quot;_&lt;em&gt;declspec(dllimport) public: class bsoncxx::v_noabi::document::value __cdecl mongocxx::v_noabi::database::stats(void)&quot; (&lt;/em&gt;&lt;em&gt;imp&lt;/em&gt;?stats@database@v_noabi@mongocxx@@QEAA?AVvalue@document@2bsoncxx@@XZ) referenced in function &quot;void __cdecl T4Stats::PrintStatisticsForOneApplication(class T4Application const &amp;amp;)&quot; (?PrintStatisticsForOneApplication@T4Stats@@YAXAEBVT4Application@@@Z)&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;This is the only error I get in a complex compile involving many thousands of lines of mongoDB C++11 code (I&apos;m upgrading from 2.3 to 3.3.5). I am compiling with /Gd (__cdecl calling convention) even though the examples used /Gv which wrecked havoc with my use of Boost 1.60. Taking out this line, the solution compiles and links fine.&lt;/p&gt;</description>
                <environment>Windows 10&lt;br/&gt;
MS VS 2015&lt;br/&gt;
MongoDB 3.3.5&lt;br/&gt;
MongoDB C++11 Driver 3.0.1</environment>
        <key id="295644">CXX-944</key>
            <summary>mongocxx::database::stats() causes error LNK2019: unresolved external symbol </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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="therefore">George Thompson</reporter>
                        <labels>
                    </labels>
                <created>Tue, 21 Jun 2016 20:26:36 +0000</created>
                <updated>Wed, 11 Sep 2019 19:06:15 +0000</updated>
                            <resolved>Wed, 22 Jun 2016 13:18:02 +0000</resolved>
                                    <version>3.0.1</version>
                                                    <component>Implementation</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1302555" author="acm" created="Wed, 22 Jun 2016 13:17:53 +0000"  >&lt;p&gt;HI &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=therefore&quot; class=&quot;user-hover&quot; rel=&quot;therefore&quot;&gt;therefore&lt;/a&gt; - Thanks for reporting this, we believe it is a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-934&quot; title=&quot;Remove database::stats()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-934&quot;&gt;&lt;del&gt;CXX-934&lt;/del&gt;&lt;/a&gt;. Please follow that issue for updates.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="294730">CXX-934</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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsmqw7:</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>