Problem with include directories in MS VS 2010

81 views
Skip to first unread message

Therefore

unread,
Aug 24, 2012, 2:17:03 PM8/24/12
to mongo...@googlegroups.com
Windows 7 64 SP1
MongoDB 2.2.0-rc2
Boost 1.42 (as part of 2.2.0-rc1)
scons 2.2.0
python 2.7.3
MS VS 2010 Ultimate

So, I'm trying to get the C++ driver installed for use with MS VS.

I downloaded 2.2.0-rc1.and unpacked it as C:\mongodb-src-r2.20-rc2\

Then I renamed C:\mongodb-src-r2.20-rc2\ to C:\MongoDB\

Started MS VS X64 command prompt.

       cd c:\mongDB

Then I:

          scons --64
          scons --dd --64 mongoclient.lib
          scons --dd --64 core
        
all without errors.

I set MS VS Properties: Configuration Properties->vc++ Directories->Include Directories to:
 
           "c:\mongoDB\src"
          
When building, I get an error:

    fatal error C1083: Cannot open include file: 'client/dbclient.h': No such file or directory
   
dbclient.h, on my computer, is stored in one place:

     C:\mongoDB\src\mongo\client\dbclient.h
    
So I set MS VS Properties: Configuration Properties->vc++ Directories->Include Directories to:

     C:\mongoDB\src\mongo
    
and upon building:

     fatal error C1083: Cannot open include file: 'mongo/client/redef_macros.h': No such file or directory
    
So, apparently my folder hierarchy is screwy? Was there a step I missed?

Thanks,

Mark

Therefore

unread,
Aug 24, 2012, 2:22:51 PM8/24/12
to mongo...@googlegroups.com
Sorry, all references to -rc1 should be -rc2.

Eric Milkie

unread,
Aug 24, 2012, 2:27:49 PM8/24/12
to mongo...@googlegroups.com
In your source file, you should be including "mongo\client\dbclient.h".  Could that be the problem?
-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/-/dTOKO-spNuwJ.
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.

Therefore

unread,
Aug 24, 2012, 2:35:47 PM8/24/12
to mongo...@googlegroups.com
Yes. Red faced. Was blithely just using Banker's "MondoDB in Action" and neglected the obvious. Thank you for your patience.

Therefore

unread,
Aug 24, 2012, 2:37:06 PM8/24/12
to mongo...@googlegroups.com
Which to be clear only had

#include "client/dbclient.h"

Eric Milkie

unread,
Aug 24, 2012, 2:40:29 PM8/24/12
to mongo...@googlegroups.com
No problem! We're here to help.
-Eric

On Aug 24, 2012, at 2:35 PM, Therefore wrote:

Yes. Red faced. Was blithely just using Banker's "MondoDB in Action" and neglected the obvious. Thank you for your patience.

--
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/-/squ6oMUiUy0J.
Reply all
Reply to author
Forward
0 new messages