C driver for windows

73 views
Skip to first unread message

denv...@gmail.com

unread,
Nov 9, 2016, 10:21:48 PM11/9/16
to mongodb-user
I am struggling to get the C driver working under Windows

Please could you point me toward the latest version of the following page

http://mongoc.org/libmongoc/current/tutorial.html

in particular the Windows compilation:

C:\> cl.exe /IC:\mongo-c-driver\include\libbson-1.0 /IC:\mongo-c-driver\include\libmongoc-1.0 connect.c

which just throws up an interminable series of missing file (first of all .h files, then .lib files)

I am using Windows 7 32 bit and I have VS2015 installed.

Thanks.

A. Jesse Jiryu Davis

unread,
Nov 10, 2016, 7:27:04 AM11/10/16
to mongodb-user
Hi, that is the latest version of that page.

Have you installed libbson? Is bson.h in the C:\mongo-c-driver\include\libbson-1.0 directory, and is mongoc.h in C:\mongo-c-driver\include\libmongoc-1.0?

To install the driver, download this:


Then follow these instructions:


Thanks,
Jesse
Reply all
Reply to author
Forward
0 new messages