compiling bson standalone.....

139 views
Skip to first unread message

Claudio Bisegni

unread,
Apr 21, 2012, 12:09:50 PM4/21/12
to bs...@googlegroups.com
I'm trying to use the bson package standalone. i have get bson forlde and other file front the /util/

when i compile i got error in bson-inl.h and bsonelement.h with this error: "'struct bson::BSONElement' is incomplete" where i can find all the definition of this object?

I want' say that if bson wan't to be a standard...the current code design is not good.

someone can help me to make bson standalone compilation succeed?

thanks in advanced


Eliot Horowitz

unread,
Apr 21, 2012, 8:52:40 PM4/21/12
to bs...@googlegroups.com
What version are you using?
bson::BSONElement should be a class, not a struct and is defined in
bson/bsonelement.h

You could also use the c version which is smaller and doesn't depend on boost.
https://github.com/mongodb/mongo-c-driver/blob/master/src/bson.h

Claudio Bisegni

unread,
Apr 22, 2012, 2:27:44 AM4/22/12
to bs...@googlegroups.com
Hi Eliot,
I use the cpp of the last 2.0.x version becuse i read on some site
that it work well on arm and i wanted to try that.
I use already use the cpp n but the code is of an old version.
I use cpp because has the code for from/to json, and now i don't have
time to change code(cpp offer high level method to access data).
If you read my other post I have some problem with arm that I'm still
trying to resolve.
Anyway If i copy the only bson folder it is unusable, has many include
also with other part of mongo.

Claudio

Il giorno 22/apr/2012, alle ore 02:52, Eliot Horowitz
<el...@10gen.com> ha scritto:

Reply all
Reply to author
Forward
0 new messages