Hi
I'm building windows driver with vs2010 and scons, I changed the
compile flags to match my project and other minor fixes, if you want I
can share my modifications. I had to fix several minor things to make
it work, and change the compilation flags.
Then in common properties -> Linker I added
'$(SolutionDir)3rd-party\mongo-cxx-driver\' and in common properties
-> C/C++, additional include directories I added
'$(SolutionDir)\3rd-party\mongo-cxx-driver\src'
Pedro.
On Tue, Aug 21, 2012 at 5:51 PM, Scott Stephens <
steph...@gmail.com> wrote:
> I've been using the C# driver successfully for a while now, and am now
> attempting to add mongo connectivity to some of my C++ apps, and have not
> been able to figure out how to use it. I'm not completely sure whether I'm
> having a build problem or a usage problem.
>
> I built from the 2.0.7 source (full, not client-only... tried client only
> briefly, and had no luck making that work). I'm on Windows 7 64-bit, Visual
> Studio 2010. I've used the following commands to build:
> - scons mongoclient
> - scons --prefix=..\mongo-install mongoclient
> - scons --prefix=..\mongo-install --release mongoclient
>
> They all seem to work, and produce a mongoclient.lib file in the base
> distribution directory, but they don't install to any location that I can
> find, leading me to guess about what I need to do to use it from a project.
> The guess I tried was to create mongo-install\lib and mongo-install\include
> directories, copy the mongoclient.lib directory to mongo-install\lib and
> copy the client folder to mongo-install\include. Then I use those paths as
> include and lib directories in my project. This approach gives me a build
> error in my project "C1083: cannot open include file '../pch.h': No such
> file or directory".
>
> Any suggestions on how to proceed?
>
> Thanks,
>
> Scott
>
> --
> 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/-/9R-f3VO4mhcJ.
> 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.