[CXX-459] compile error caused by connpool.h Created: 05/Jan/15 Updated: 07/Jan/15 Resolved: 07/Jan/15 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Build |
| Affects Version/s: | legacy-1.0.0-rc3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | tianchaohaohan | Assignee: | Andrew Morrow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | legacy-cxx | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
#include <mongo/client/connpool.h> g++ main.cpp -o main -lmongoclient -lboost_system -lboost_thread -lboost_filesystem -lboost_program_options -lboost_regex -std=c+ |
| Comments |
| Comment by Andrew Morrow (Inactive) [ 07/Jan/15 ] |
|
Hi - I'm closing this because it sounds from the other ticket like you are have been able to build the driver. Please feel free to re-open the ticket if you are still having problems. Thanks, |
| Comment by Andrew Morrow (Inactive) [ 06/Jan/15 ] |
|
Hi - You mentioned in Thanks, |
| Comment by Andrew Morrow (Inactive) [ 05/Jan/15 ] |
|
Hi - Unfortunately, the header files of the driver are not factored so as to be independently includable. Please include "mongo/client/dbclient.h" instead, which pulls in all of the headers necessary to use the library, in the appropriate order and with the appropriate macros defined. Also, I'm puzzled how you are even managing to include connpool.h if you are using -rc3, since that file was not shipped as part of that release (the connection pool support was removed in the legacy-1.0.0-rc1 release (see Can you please provide the information from here https://github.com/mongodb/mongo-cxx-driver/wiki/Download%20and%20Compile#how-to-ask-for-help about how you built the driver? Thanks, |