<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:58:11 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-94] C++ Client driver headers dependency on pch.h</title>
                <link>https://jira.mongodb.org/browse/CXX-94</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;After downloading and building the latest c++ mongo driver tarball (28 April 17:55 SAST) I can&apos;t get a simple program built with the mongo driver. Everywhere I include dbclient.h I receive the following error: /usr/local/include/mongo/client/dbclient.h:30:17: fatal error: pch.h: No such file or directory.&lt;/p&gt;

&lt;p&gt;The file /usr/local/include/mongo/pch.h exists however. The latest v2.0 client driver tarball does not have this issue.&lt;/p&gt;

&lt;p&gt;I think the headers including pch.h should not rely on the mongo driver&apos;s include path (-Imongo) and should rather include ../pch.h. This is a guess as to what the problem is though.&lt;/p&gt;</description>
                <environment>Ubuntu 12.04 x64. Boost 1.49</environment>
        <key id="37371">CXX-94</key>
            <summary>C++ Client driver headers dependency on pch.h</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="9">Done</resolution>
                                        <assignee username="andrew.morrow@mongodb.com">Andrew Morrow</assignee>
                                    <reporter username="climax">Pieter Willem Jordaan</reporter>
                        <labels>
                            <label>cxxmove</label>
                            <label>driver</label>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Sat, 28 Apr 2012 15:57:56 +0000</created>
                <updated>Sun, 4 May 2014 19:32:24 +0000</updated>
                            <resolved>Mon, 17 Mar 2014 15:55:03 +0000</resolved>
                                                    <fixVersion>legacy-0.8.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="517479" author="acm" created="Mon, 17 Mar 2014 15:55:03 +0000"  >&lt;p&gt;Fixed, in that pch.h no longer exists in the tree.&lt;/p&gt;</comment>
                            <comment id="515413" author="acm" created="Thu, 13 Mar 2014 18:08:08 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/pull/20&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/pull/20&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="512550" author="climax" created="Mon, 10 Mar 2014 15:51:58 +0000"  >&lt;p&gt;Not sure if the dependency on pch is resolved, but I no longer require the workaround (-Isrc/mongo)&lt;/p&gt;</comment>
                            <comment id="114660" author="climax" created="Sun, 29 Apr 2012 10:46:33 +0000"  >&lt;p&gt;From tutorial.cpp: &lt;/p&gt;

&lt;p&gt;// g++ src/mongo/client/examples/tutorial.cpp -pthread -Isrc -Isrc/mongo -lmongoclient -lboost_thread-mt -lboost_system -lboost_filesystem -L&lt;span class=&quot;error&quot;&gt;&amp;#91;path to libmongoclient.a&amp;#93;&lt;/span&gt; -o tutorial&lt;br/&gt;
//g++ tutorial.cpp -L&lt;span class=&quot;error&quot;&gt;&amp;#91;mongo directory&amp;#93;&lt;/span&gt; -L/opt/local/lib -lmongoclient -lboost_thread-mt -lboost_filesystem -lboost_system -I/opt/local/include  -o tutorial&lt;/p&gt;


&lt;p&gt;It works if and only if I use this in both examples: -Isrc/mongo&lt;/p&gt;

&lt;p&gt;I believe building client apps should not have to rely on -Isrc/mongo but only -Isrc as I believe a recent commit was made to make mongo/client/dbclient.h the only needed include file. Not pch.h&lt;/p&gt;</comment>
                            <comment id="114578" author="climax" created="Sat, 28 Apr 2012 16:00:31 +0000"  >&lt;p&gt;modified SConstruct and removed the boost dependency on &quot;*-mt&quot; libraries&lt;/p&gt;

&lt;p&gt;build command: scons --extrapath /usr/local install&lt;/p&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="54703">SERVER-7504</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|hrianj:</customfieldvalue>

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