Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-94

C++ Client driver headers dependency on pch.h

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • legacy-0.8.0
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      Ubuntu 12.04 x64. Boost 1.49

      After downloading and building the latest c++ mongo driver tarball (28 April 17:55 SAST) I can'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.

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

      I think the headers including pch.h should not rely on the mongo driver's include path (-Imongo) and should rather include ../pch.h. This is a guess as to what the problem is though.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            climax Pieter Willem Jordaan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: