Pelles C forum

C language => Expert questions => Topic started by: crr_gm on December 21, 2012, 08:05:18 pm

Title: MongoDb
Post by: crr_gm on December 21, 2012, 08:05:18 pm
Has anybody used MongoDb with Pelles C?  I have tried to use the drivers but keep getting errors.  mongodb.org
Title: Re: MongoDb
Post by: Bitbeisser on December 21, 2012, 08:19:07 pm
Has anybody used MongoDb with Pelles C?  I have tried to use the drivers but keep getting errors.  mongodb.org
Well, no I haven't used MongoDB with Pelle's C so far, but in general, it would be helpful if you elaborate a bit more about

- what "drivers" you are trying to use and
- what kind of errors you are getting...

Ralf
Title: Re: MongoDb
Post by: TimoVJL on December 22, 2012, 01:01:47 pm
Has anybody used MongoDb with Pelles C?  I have tried to use the drivers but keep getting errors.  mongodb.org
Not until now.
If you get
Quote
FAIL: Could not connect to mongod. Make sure it's listening at 127.0.0.1:27017.
then least example.c is missing call to mongo_env_sock_init();

Title: Re: MongoDb
Post by: czerny on March 27, 2013, 01:53:27 pm
If you get
Quote
FAIL: Could not connect to mongod. Make sure it's listening at 127.0.0.1:27017.
then least example.c is missing call to mongo_env_sock_init();
I got this failure, but the above call is included in your example.
Title: Re: MongoDb
Post by: TimoVJL on March 27, 2013, 02:43:22 pm
Is mongod.exe running ?
Is database created ?
Title: Re: MongoDb
Post by: czerny on March 27, 2013, 08:16:23 pm
Sorry! I got it.