{"action":"created","issue":{"url":"https://api.github.com/repos/Climax777/mongo-cxx-pool/issues/3","repository_url":"https://api.github.com/repos/Climax777/mongo-cxx-pool","labels_url":"https://api.github.com/repos/Climax777/mongo-cxx-pool/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Climax777/mongo-cxx-pool/issues/3/comments","events_url":"https://api.github.com/repos/Climax777/mongo-cxx-pool/issues/3/events","html_url":"https://github.com/Climax777/mongo-cxx-pool/issues/3","id":163866930,"number":3,"title":"Can not load library","user":{"login":"mabotta","id":3409177,"avatar_url":"https://avatars.githubusercontent.com/u/3409177?v=3","gravatar_id":"","url":"https://api.github.com/users/mabotta","html_url":"https://github.com/mabotta","followers_url":"https://api.github.com/users/mabotta/followers","following_url":"https://api.github.com/users/mabotta/following{/other_user}","gists_url":"https://api.github.com/users/mabotta/gists{/gist_id}","starred_url":"https://api.github.com/users/mabotta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mabotta/subscriptions","organizations_url":"https://api.github.com/users/mabotta/orgs","repos_url":"https://api.github.com/users/mabotta/repos","events_url":"https://api.github.com/users/mabotta/events{/privacy}","received_events_url":"https://api.github.com/users/mabotta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-05T14:39:19Z","updated_at":"2016-07-05T20:04:07Z","closed_at":null,"body":"Hi,\r\nI'm trying to add pool support to my application as a static library. \r\nWhen my application loads the library, it stops working; if I comment the lines where I'm using mongopool class, it works with no problem.\r\nCan you help me?\r\nI'm adding an example code.\r\n\r\n{code}\r\n// clt_ is a global mongo::DBClientConnection\r\nmongo::BSONObjBuilder b;\r\nmarshalEvent(id, e, b);    // returns a BSON object to store into the database.\r\n//clt_->update(collection, MONGO_QUERY(\"_id\"<<ToMongoDate(e.getTimestamp())), b.obj(),/*upsert*/ false,/*multi*/ false);\r\n\r\nmongopool::MongoConnection conn(_host);\r\nmongo::DBClientBase* c = conn.get();\r\nc->update(collection, MONGO_QUERY(\"_id\" << ToMongoDate(e.getTimestamp())), b.obj(),/*upsert*/ false,/*multi*/ false);\r\n\r\n//mongo::BSONObj errObj = clt_->getLastErrorDetailed();\r\nmongo::BSONObj errObj = c->getLastErrorDetailed();\r\nconn.done();\r\n{code}\r\n\r\nRegards,\r\n\r\nMariano"},"comment":{"url":"https://api.github.com/repos/Climax777/mongo-cxx-pool/issues/comments/230586865","html_url":"https://github.com/Climax777/mongo-cxx-pool/issues/3#issuecomment-230586865","issue_url":"https://api.github.com/repos/Climax777/mongo-cxx-pool/issues/3","id":230586865,"user":{"login":"Climax777","id":768925,"avatar_url":"https://avatars.githubusercontent.com/u/768925?v=3","gravatar_id":"","url":"https://api.github.com/users/Climax777","html_url":"https://github.com/Climax777","followers_url":"https://api.github.com/users/Climax777/followers","following_url":"https://api.github.com/users/Climax777/following{/other_user}","gists_url":"https://api.github.com/users/Climax777/gists{/gist_id}","starred_url":"https://api.github.com/users/Climax777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Climax777/subscriptions","organizations_url":"https://api.github.com/users/Climax777/orgs","repos_url":"https://api.github.com/users/Climax777/repos","events_url":"https://api.github.com/users/Climax777/events{/privacy}","received_events_url":"https://api.github.com/users/Climax777/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T20:04:07Z","updated_at":"2016-07-05T20:04:07Z","body":"If you've removed all the c++11 bits then it shouldn't be necessary. In\nfact you should modify the cmake scripts to remove the c++11 flags.\n\nAlso it is imperative to ensure that boost and mongo-cxx-driver-legacy is\nbuilt with the same compiler and c++ standard before building the pool.\n\nAlso ensure that you link the application to the dependencies as in the\nexample cmake file.\n\nIf you're still struggling please send me some more detail regarding your\nenvironment. I haven't tried on Windows yet and your tests would help\ntowards making this library portable.\n\nOn Tue, 05 Jul 2016, 17:35 Mariano <notifications@github.com> wrote:\n\n> Hi Pieter,\n> I modified the iterators, changing the auto pointers for standard STL\n> iterators and compiled with VS2010. Do I still have to check for VC++11 (or\n> 14)\n> I should change for, at least, VS2013. Is this correct?\n> Regards and thanks,\n>\n> Mariano\n>\n> From: m_botta@hotmail.com\n> To: reply@reply.github.com\n> Subject: RE: [Climax777/mongo-cxx-pool] Can not load library (#3)\n> Date: Tue, 5 Jul 2016 10:47:03 -0400\n>\n>\n>\n>\n> Hi\n> I have this line in the class constructor.\n> I'll check the compiler and write back to you.\n> Thanks,\n> Mariano\n>\n> Date: Tue, 5 Jul 2016 07:44:55 -0700\n> From: notifications@github.com\n> To: mongo-cxx-pool@noreply.github.com\n> CC: m_botta@hotmail.com; author@noreply.github.com\n> Subject: Re: [Climax777/mongo-cxx-pool] Can not load library (#3)\n>\n> Hi Mariano\n>\n>\n> Please include this line somewhere in your code before using the mongo\n> library:\n>\n> mongo::client::initialize();\n>\n>\n> Also make sure you compile your code with C++11(or 14) support.\n>\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub, or mute the thread.\n>\n>\n>\n>\n>\n>\n> —\n> You are receiving this because you commented.\n>\n>\n> Reply to this email directly, view it on GitHub\n> <https://github.com/Climax777/mongo-cxx-pool/issues/3#issuecomment-230514666>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe/AAu7nSOw2onPZiaQIWyQtEIybLhCKiaiks5qSnnFgaJpZM4JFL-h>\n> .\n>\n"}}
{"actor":{"display_login":"Climax777"}}