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.