Skip to content

Unable to compile on OSX #3

@spinatmensch

Description

@spinatmensch

Hi,
I tried to compile this plugin but I got several errors:

In file included from mongodb_datasource.cpp:24:
In file included from ./mongodb_datasource.hpp:47:
In file included from ./connection_manager.hpp:27:
./connection.hpp:52:52: error: no member named 'getScopedDbConnection' in
'mongo::ScopedDbConnection'; did you mean 'ScopedDbConnection'?
conn_.reset(mongo::ScopedDbConnection::getScopedDbConnection...
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/local/include/mongo/client/connpool.h:284:28: note: 'ScopedDbConnection'
declared here
class MONGO_CLIENT_API ScopedDbConnection : public AScopedConnection {
^
1 error generated.
make: *** [mongodb_datasource.o] Error 1

commenting out line 52 ends up with:

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [mongodb.input] Error 1

It would be great if you can fix it

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