Skip to content

OSX Compilation Error #1

@ghost

Description

In file included from src/bsonobj.cpp:21:
src/bsonobj.h:24:29: error: util/atomic_int.h: No such file or directory
In file included from src/util/../bsonassert.h:40,
from src/util/hex.h:20,
from src/oid.h:20,
from src/bsonobj.cpp:20:
src/util/../util/builder.h: In member function 'void bson::StringBuilder::appendDoubleNice(double)':
src/util/../util/builder.h:277: error: 'assert' was not declared in this scope
src/util/../util/builder.h: In member function 'bson::StringBuilder& bson::StringBuilder::SBNUM(T, int, const char_)':
src/util/../util/builder.h:313: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available
src/util/../util/builder.h:313: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from src/bsonobj.h:27,
from src/bsonobj.cpp:21:
src/bsonelement.h: At global scope:
src/bsonelement.h:73: error: 'mongo' has not been declared
src/bsonelement.h:73: error: ISO C++ forbids declaration of 'OID' with no type
src/bsonelement.h:73: error: expected ';' before 'OID'
src/bsonelement.h:74: error: expected `;' before 'void'
In file included from src/bsonobj.cpp:21:
src/bsonobj.h:93: error: expected ',' or '...' before '' token
src/bsonobj.h:93: error: ISO C++ forbids declaration of 'Record' with no type
src/bsonobj.h:456: error: 'AtomicUInt' does not name a type
src/bsonobj.h: In member function 'void bson::BSONObj::Holder::zero()':
src/bsonobj.h:460: error: 'refCount' was not declared in this scope
src/bsonobj.h: In function 'void bson::intrusive_ptr_add_ref(bson::BSONObj::Holder
)':
src/bsonobj.h:463: error: 'class bson::BSONObj::Holder' has no member named 'refCount'
src/bsonobj.h: In function 'void bson::intrusive_ptr_release(bson::BSONObj::Holder_)':
src/bsonobj.h:468: error: 'class bson::BSONObj::Holder' has no member named 'refCount'
In file included from src/util/../bson.h:42,
from src/util/json.h:21,
from src/bsonobj.cpp:27:
src/util/../bson-inl.h: In member function 'int bson::BSONElement::size() const':
src/util/../bson-inl.h:634: error: 'Bool' is not a member of 'mongo'
src/util/../bson-inl.h:641: error: 'Date' is not a member of 'mongo'
src/util/../bson-inl.h:651: error: 'String' is not a member of 'mongo'
src/util/../bson-inl.h:659: error: 'Array' is not a member of 'mongo'
src/bsonobj.cpp: At global scope:
src/bsonobj.cpp:448: error: redefinition of 'int bson::BSONElement::woCompare(const bson::BSONElement&, bool) const'
src/util/../bson-inl.h:156: error: 'int bson::BSONElement::woCompare(const bson::BSONElement&, bool) const' previously defined here
src/bsonobj.cpp: In function 'int bson::compareElementValues(const bson::BSONElement&, const bson::BSONElement&)':
src/bsonobj.cpp:465: error: redefinition of 'int bson::compareElementValues(const bson::BSONElement&, const bson::BSONElement&)'
src/util/../bson-inl.h:38: error: 'int bson::compareElementValues(const bson::BSONElement&, const bson::BSONElement&)' previously defined here
src/bsonobj.cpp: At global scope:
src/bsonobj.cpp:812: error: prototype for 'void bson::BSONObj::getFieldsDotted(const bson::StringData&, bson::BSONElementSet&) const' does not match any in class 'bson::BSONObj'
src/bsonobj.h:190: error: candidates are: void bson::BSONObj::getFieldsDotted(const bson::StringData&, bson::BSONElementMSet&, bool) const
src/bsonobj.h:189: error: void bson::BSONObj::getFieldsDotted(const bson::StringData&, bson::BSONElementSet&, bool) const
src/bsonobj.cpp: In member function 'void bson::BSONObj::getFieldsDotted(const bson::StringData&, bson::BSONElementSet&) const':
src/bsonobj.cpp:822: error: call of overloaded 'getFieldsDotted(const char_&, std::set<bson::BSONElement, bson::BSONElementCmpWithoutField, std::allocatorbson::BSONElement >&)' is ambiguous
src/bsonobj.h:189: note: candidates are: void bson::BSONObj::getFieldsDotted(const bson::StringData&, bson::BSONElementSet&, bool) const
src/bsonobj.cpp:812: note: void bson::BSONObj::getFieldsDotted(const bson::StringData&, bson::BSONElementSet&) const
src/bsonobj.cpp:833: error: call of overloaded 'getFieldsDotted(const char_&, std::set<bson::BSONElement, bson::BSONElementCmpWithoutField, std::allocatorbson::BSONElement >&)' is ambiguous
src/bsonobj.h:189: note: candidates are: void bson::BSONObj::getFieldsDotted(const bson::StringData&, bson::BSONElementSet&, bool) const
src/bsonobj.cpp:812: note: void bson::BSONObj::getFieldsDotted(const bson::StringData&, bson::BSONElementSet&) const
src/bsonobj.cpp:840: error: call of overloaded 'getFieldsDotted(const char_&, std::set<bson::BSONElement, bson::BSONElementCmpWithoutField, std::allocatorbson::BSONElement >&)' is ambiguous
src/bsonobj.h:189: note: candidates are: void bson::BSONObj::getFieldsDotted(const bson::StringData&, bson::BSONElementSet&, bool) const
src/bsonobj.cpp:812: note: void bson::BSONObj::getFieldsDotted(const bson::StringData&, bson::BSONElementSet&) const
src/bsonobj.cpp: At global scope:
src/bsonobj.cpp:963: error: redefinition of 'int bson::BSONObj::getIntField(const char_) const'
src/util/../bson-inl.h:276: error: 'int bson::BSONObj::getIntField(const char_) const' previously defined here
src/bsonobj.cpp:968: error: redefinition of 'bool bson::BSONObj::getBoolField(const char_) const'
src/util/../bson-inl.h:281: error: 'bool bson::BSONObj::getBoolField(const char_) const' previously defined here
src/bsonobj.cpp:973: error: redefinition of 'const char_ bson::BSONObj::getStringField(const char_) const'
src/util/../bson-inl.h:286: error: 'const char_ bson::BSONObj::getStringField(const char_) const' previously defined here
src/bsonobj.cpp: In member function 'int bson::BSONObj::addFields(bson::BSONObj&, std::set<std::basic_string<char, std::char_traits, std::allocator >, std::less<std::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::basic_string<char, std::char_traits, std::allocator > > >&)':
src/bsonobj.cpp:1024: error: no matching function for call to 'bson::BSONObj::init(char_, bool)'
src/bsonobj.h:481: note: candidates are: void bson::BSONObj::init(bson::BSONObj::Holder_)
src/bsonobj.h:485: note: void bson::BSONObj::init(const char_)
make[1]: *** [libbsoncpp_la-bsonobj.lo] Error 1
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions