C++ driver in master

28 views
Skip to first unread message

Pedro Larroy

unread,
Apr 5, 2012, 11:51:23 AM4/5/12
to mongo...@googlegroups.com
Hi

The two includes added to pch.h:

#include "mongo/client/redef_macros.h"
#include "mongo/util/exit_code.h"

In the following commits:

45f30389a9128fe2216371cabbe8426b634d68e9
19d5b5bde3ec5950b78953290d93d7445c9f1016

Change the behaviour when using the C++ driver. Previously it was enough to compile with -I src/mongo

Because of those includes not anymore.

Regards.

Pedro.



Pedro Larroy

unread,
Apr 5, 2012, 12:16:27 PM4/5/12
to mongo...@googlegroups.com
Just to clarify, now you have to -I src and -I src/mongo

It would be nicer to have a single includepoint as before.

Have a happy holidays!

Eric Milkie

unread,
Apr 5, 2012, 12:40:02 PM4/5/12
to mongo...@googlegroups.com
Hi Pedro,
You are correct, you will need both include paths until we can finish the work with pch.h.  We can't set a path for it yet due to Visual Studio precompiled header support, but that will be changing soon.  When the work is finished, you will only need "-I src/" to compile programs using the C++ driver.
-Eric

--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mongodb-dev/-/TGIIkJeaQVMJ.
To post to this group, send email to mongo...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-dev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-dev?hl=en.

Pedro Larroy

unread,
Apr 5, 2012, 2:49:27 PM4/5/12
to mongo...@googlegroups.com


On Thursday, April 5, 2012 5:51:23 PM UTC+2, Pedro Larroy wrote:

Pedro Larroy

unread,
Apr 5, 2012, 2:49:50 PM4/5/12
to mongo...@googlegroups.com
If I can help let me know, but I guess it requires touching a lot of code, and might be better suited for people from 10gen.

Pedro.
To unsubscribe from this group, send email to mongodb-dev+unsubscribe@googlegroups.com.
To unsubscribe from this group, send email to mongodb-dev+unsubscribe@googlegroups.com.

Eric Milkie

unread,
Apr 5, 2012, 2:56:46 PM4/5/12
to mongo...@googlegroups.com
Indeed, it's a pain, and I touch a lot of headers until my eyes bug out.  Thanks for the help offer though.  I'm hoping that for 2.2 we'll have a C++ driver that is clean, effective, and easy to incorporate.
-Eric


To view this discussion on the web visit https://groups.google.com/d/msg/mongodb-dev/-/Bu9K8z5_mWUJ.

To post to this group, send email to mongo...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-dev...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages