[CDRIVER-157] example.c doesn't compile in v0.6 Created: 18/Jul/12  Updated: 19/Oct/16  Resolved: 28/Jul/12

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 0.6
Fix Version/s: 0.7

Type: Bug Priority: Minor - P4
Reporter: Gregor Macadam Assignee: Gary Murakami
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Comments   
Comment by auto [ 28/Jul/12 ]

Author:

{u'date': u'2012-07-27T20:42:44-07:00', u'email': u'gary.murakami@10gen.com', u'name': u'Gary Murakami'}

Message: CDRIVER-157 - example.c doesn't compile in v0.6
fix with NULL write concern parameter
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/6166e8a12b4350e7ea10b9adcfb399a7c28fdad4

Comment by Gregor Macadam [ 19/Jul/12 ]

gcc --std=c99 -I/usr/local/include -L/usr/local/lib -o example docs/examples/example.c -lmongoc
docs/examples/example.c: In function ‘main’:
docs/examples/example.c:91:5: error: too few arguments to function ‘mongo_insert’
/usr/local/include/mongo.h:369:18: note: declared here

Generated at Wed Feb 07 21:08:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.