I continue with the same problem. I need your help.
This is my problem.
My problem is Windows plataform. I had compile mongoDB driver c++ with:
Microsoft Visual Studio Ultimate 2012,
scons 2.3.2,
mongo drive 26compat-2.6.5
boost 1.56
over Windows 7 64 bits (Spanish) and Windows 7 32 bits (Spanish)
I compile with the following options :
C:\Python27\Scripts\scons --32 --release --full --use-system-boost --sharedclient --dynamic-windows --prefix=C:\mongo_driver_ legacy\mongo_client_32_release --cpppath=C:\Temp\boost_1_56_0 --libpath=C:\Temp\boost_1_56_ 0\stage\lib install-mongoclient
I am using the shared library with the DLL.
But when I execute the application I get the following error:
2014-08-27T10:27:43.916-0300 getaddrinfo("???") failed: errno:11001 Host inconnu.
can't connect couldn't connect to server É?ù:27017(0.0.0.0), address resolved to 0.0.0.0
I tried run the program in Visual Studio 2012 and QT 5.3.2. The result is the same.
------------------------------ ------------------------------ -----
Visual Studio 2012
#include "stdafx.h"
#include <cstdlib>
#include <iostream>
#include "mongo/client/dbclient.h"
void run() {
mongo::DBClientConnection c;
c.connect("localhost");
}
int _tmain(int argc, _TCHAR* argv[])
{
mongo::client::initialize();
try {
run();
std::cout << "connected ok" << std::endl;
} catch( const mongo::DBException &e ) {
std::cout << "caught " << e.what() << std::endl;
}
return 0;
}
------------------------------ ------------------------------ ------
QT 5.3.2
#include <QCoreApplication>
#include <QtCore>
#include <QTextCodec>
#include <qdebug.h>
#include <iostream>
#include <tchar.h>
#include "mongo/client/dbclient.h"
#include "mongo/bson/bson.h"
using namespace mongo;
using namespace bson;
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
try
{
QString hostname="localhost";
QByteArray utf8 = hostname.toUtf8();
std::string host(std::string(utf8.data(), utf8.size()));
std::cout << host << std::endl;
DBClientConnection db(true);
db.connect(host);
}
catch(const DBException &e)
{
qDebug() << e.what();
}
return a.exec();
}
------------------------------ ------------------------------ --------------------------
I run the application in debug step by step and when I am in the function connect (dbclientinterface.h line 1242):
void connect(const string& serverHostname)
{
string errmsg;
if( !connect(HostAndPort( serverHostname), errmsg) )
throw ConnectException(string("can't connect ") + errmsg);
}
When I check the value of serverHostname in the debugger, the value seem a little bit different than "localhost", there is some random character before and after the value localhost.
serverHostname parameter is: "Ð\030\210\000localhost\000G\ 000îp\005\000\t\000\000\000\ 017\000\000\000z(G ÐûG\000¤üG\000\225o\005\000\ 002\000\000\000´üG\000ÉJ\005\ 000\001\000\000\000 \004\210\000\020í\207\000ª(G \000\000\000\000\000\000\000\ 000\000àý~\000\000\000\000\ 010`p\214\000\000\000\000\000\ 000H\000\000\000\000\000xüG\ 000$N7,øüG\000@L\005\000ö5\005 \000\000\000\000¼üG\000\rL\ 005\000ÈüG\000j3ât\000àý~\ 010ýG\000r\237Uw\000àý~Û \220_\000\000\000\000\000\000\ 000\000\000àý~\000\000\000\ 000\000\000\000\000\000\000\ 000\000ÔüG\000\000\000\000\ 000ÿÿÿÿõqYw\203\030\203(\000\ 000\000\000 ýG\000E\237Uw\000L\005\000\ 000àý~\000\000\000\000\000\ 000\000\000\000\000\000\000\ 000\000\000\000\000L\005\000\ 000àý~\000\000\000\000\000\ 000\000\000\000\000\000\000\ 000\000\000\000\000\000\000\ 000\000\000\000\000\000\000\ 000\000\000\000\000\000\000\ 000\000\000\000\..." @0x47fc34
Do you have any idea ?
Are you building your application against the same windows runtime library as the driver library? You configured with --dynamic-windows, so you should be building your application with the /MD flag, or whatever IDE setting results in the same configuration.
I setting /MD in Configuration Properties -> c/c++ -> Code Generation -> Runtime Library : Multi-threaded DLL (/MD) in property proyect Visual Studio 2012
Are there other places where I setting it???
I'm no expert in Visual Studio.
Could you provide the exact compiler and linker invocations that Visual Studio is emitting when building your example?
This is the compiler and linker invocation. Thank you.
1>------ Build started: Project: TestMongoDB, Configuration: Debug Win32 ------
1> stdafx.cpp
1> TestMongoDB.cpp
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\util\assert_ util.h(71): warning C4251: 'mongo::ExceptionInfo::msg' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of struct 'mongo::ExceptionInfo'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\util\assert_ util.h(121): warning C4251: 'mongo::DBException::_shard' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::DBException'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\logger\ logstream_builder.h(131): warning C4251: 'mongo::logger:: LogstreamBuilder::_ contextName' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::logger:: LogstreamBuilder'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\logger\ logstream_builder.h(132): warning C4251: 'mongo::logger:: LogstreamBuilder::_severity' : class 'mongo::logger::LogSeverity' needs to have dll-interface to be used by clients of class 'mongo::logger:: LogstreamBuilder'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\logger\log_severity.h( 32) : see declaration of 'mongo::logger::LogSeverity'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\logger\ logstream_builder.h(133): warning C4251: 'mongo::logger:: LogstreamBuilder::_ baseMessage' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::logger:: LogstreamBuilder'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\bson\bsonobj.h( 557): warning C4251: 'mongo::BSONObj::_holder' : class 'boost::intrusive_ptr<T>' needs to have dll-interface to be used by clients of class 'mongo::BSONObj'
1> with
1> [
1> T=mongo::BSONObj::Holder
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\bson\bsonmisc.h( 201): warning C4275: non dll-interface class 'boost::noncopyable_:: noncopyable' used as base for dll-interface class 'mongo:: BSONObjBuilderValueStream'
1> c:\temp\boost_1_56_0\boost\ core\noncopyable.hpp(24) : see declaration of 'boost::noncopyable_:: noncopyable'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\bson\bsonmisc.h(201) : see declaration of 'mongo:: BSONObjBuilderValueStream'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\bson\bsonmisc.h( 233): warning C4251: 'mongo:: BSONObjBuilderValueStream::_ fieldName' : class 'mongo::StringData' needs to have dll-interface to be used by clients of class 'mongo:: BSONObjBuilderValueStream'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\base\string_data.h(43) : see declaration of 'mongo::StringData'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\bson\bsonmisc.h( 238): warning C4251: 'mongo:: BSONObjBuilderValueStream::_ subobj' : class 'std::auto_ptr<_Ty>' needs to have dll-interface to be used by clients of class 'mongo:: BSONObjBuilderValueStream'
1> with
1> [
1> _Ty=mongo::BSONObjBuilder
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\bson\ bsonobjbuilder.h(52): warning C4275: non dll-interface class 'mongo::BSONBuilderBase' used as base for dll-interface class 'mongo::BSONObjBuilder'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\bson\bson_builder_base. h(29) : see declaration of 'mongo::BSONBuilderBase'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\bson\bsonobjbuilder.h( 52) : see declaration of 'mongo::BSONObjBuilder'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\bson\ bsonobjbuilder.h(52): warning C4275: non dll-interface class 'boost::noncopyable_:: noncopyable' used as base for dll-interface class 'mongo::BSONObjBuilder'
1> c:\temp\boost_1_56_0\boost\ core\noncopyable.hpp(24) : see declaration of 'boost::noncopyable_:: noncopyable'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\bson\bsonobjbuilder.h( 52) : see declaration of 'mongo::BSONObjBuilder'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\bson\ bsonobjbuilder.h(695): warning C4251: 'mongo::BSONObjBuilder::_buf' : class 'mongo::_BufBuilder<Allocator> ' needs to have dll-interface to be used by clients of class 'mongo::BSONObjBuilder'
1> with
1> [
1> Allocator=mongo:: TrivialAllocator
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\bson\ bsonobjbuilder.h(701): warning C4251: 'mongo::BSONObjBuilder:: numStrs' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::BSONObjBuilder'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\util\net\sock.h( 286): warning C4251: 'mongo::Socket::_local' : struct 'mongo::SockAddr' needs to have dll-interface to be used by clients of class 'mongo::Socket'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\util\net\sock.h(93) : see declaration of 'mongo::SockAddr'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\util\net\sock.h( 287): warning C4251: 'mongo::Socket::_remote' : struct 'mongo::SockAddr' needs to have dll-interface to be used by clients of class 'mongo::Socket'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\util\net\sock.h(93) : see declaration of 'mongo::SockAddr'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\util\net\sock.h( 298): warning C4251: 'mongo::Socket::_logLevel' : class 'mongo::logger::LogSeverity' needs to have dll-interface to be used by clients of class 'mongo::Socket'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\logger\log_severity.h( 32) : see declaration of 'mongo::logger::LogSeverity'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(322): warning C4251: 'mongo::ConnectionString::_ servers' : class 'std::vector<_Ty>' needs to have dll-interface to be used by clients of class 'mongo::ConnectionString'
1> with
1> [
1> _Ty=mongo::HostAndPort
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(323): warning C4251: 'mongo::ConnectionString::_ string' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::ConnectionString'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(324): warning C4251: 'mongo::ConnectionString::_ setName' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::ConnectionString'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(326): warning C4251: 'mongo::ConnectionString::_ connectHookMutex' : class 'mongo::mutex' needs to have dll-interface to be used by clients of class 'mongo::ConnectionString'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\util\concurrency\mutex. h(74) : see declaration of 'mongo::mutex'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(352): warning C4251: 'mongo::Query::ReadPrefField' : class 'mongo::BSONField<T>' needs to have dll-interface to be used by clients of class 'mongo::Query'
1> with
1> [
1> T=mongo::BSONObj
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(353): warning C4251: 'mongo::Query:: ReadPrefModeField' : class 'mongo::BSONField<T>' needs to have dll-interface to be used by clients of class 'mongo::Query'
1> with
1> [
1> T=std::string
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(354): warning C4251: 'mongo::Query:: ReadPrefTagsField' : class 'mongo::BSONField<T>' needs to have dll-interface to be used by clients of class 'mongo::Query'
1> with
1> [
1> T=mongo::BSONArray
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(474): warning C4251: 'mongo::QuerySpec::_ns' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::QuerySpec'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(557): warning C4275: non dll-interface class 'boost::noncopyable_:: noncopyable' used as base for dll-interface class 'mongo::DBClientInterface'
1> c:\temp\boost_1_56_0\boost\ core\noncopyable.hpp(24) : see declaration of 'boost::noncopyable_:: noncopyable'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\client\ dbclientinterface.h(557) : see declaration of 'mongo::DBClientInterface'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(601): warning C4251: 'mongo::DBClientWithCommands:: _seenIndexes' : class 'std::set<_Kty>' needs to have dll-interface to be used by clients of class 'mongo::DBClientWithCommands'
1> with
1> [
1> _Kty=std::string
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(604): warning C4251: 'mongo::DBClientWithCommands:: _logLevel' : class 'mongo::logger::LogSeverity' needs to have dll-interface to be used by clients of class 'mongo::DBClientWithCommands'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\logger\log_severity.h( 32) : see declaration of 'mongo::logger::LogSeverity'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(835): warning C4251: 'mongo::DBClientWithCommands:: MRInline' : struct 'mongo::DBClientWithCommands:: MROutput' needs to have dll-interface to be used by clients of class 'mongo::DBClientWithCommands'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\client\ dbclientinterface.h(828) : see declaration of 'mongo::DBClientWithCommands:: MROutput'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(1046): warning C4251: 'mongo::DBClientWithCommands:: _runCommandHook' : class 'boost::function<Signature>' needs to have dll-interface to be used by clients of class 'mongo::DBClientWithCommands'
1> with
1> [
1> Signature=void (mongo::BSONObjBuilder *)
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(1047): warning C4251: 'mongo::DBClientWithCommands:: _postRunCommandHook' : class 'boost::function<Signature>' needs to have dll-interface to be used by clients of class 'mongo::DBClientWithCommands'
1> with
1> [
1> Signature=void (const mongo::BSONObj &,const std::string &)
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(1060): warning C4251: 'mongo::DBClientBase:: ConnectionIdSequence' : class 'mongo::AtomicWord<_WordType>' needs to have dll-interface to be used by clients of class 'mongo::DBClientBase'
1> with
1> [
1> _WordType=__int64
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(1340): warning C4251: 'mongo::DBClientConnection::p' : class 'boost::scoped_ptr<T>' needs to have dll-interface to be used by clients of class 'mongo::DBClientConnection'
1> with
1> [
1> T=mongo::MessagingPort
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(1341): warning C4251: 'mongo::DBClientConnection:: server' : class 'boost::scoped_ptr<T>' needs to have dll-interface to be used by clients of class 'mongo::DBClientConnection'
1> with
1> [
1> T=mongo::SockAddr
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(1344): warning C4251: 'mongo::DBClientConnection:: autoReconnectBackoff' : class 'mongo::Backoff' needs to have dll-interface to be used by clients of class 'mongo::DBClientConnection'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\util\time_support.h(104) : see declaration of 'mongo::Backoff'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(1345): warning C4251: 'mongo::DBClientConnection::_ server' : struct 'mongo::HostAndPort' needs to have dll-interface to be used by clients of class 'mongo::DBClientConnection'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\util\net\hostandport.h( 31) : see declaration of 'mongo::HostAndPort'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(1346): warning C4251: 'mongo::DBClientConnection::_ serverString' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::DBClientConnection'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(1347): warning C4251: 'mongo::DBClientConnection::_ serverAddrString' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::DBClientConnection'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(1353): warning C4251: 'mongo::DBClientConnection:: authCache' : class 'std::map<_Kty,_Ty>' needs to have dll-interface to be used by clients of class 'mongo::DBClientConnection'
1> with
1> [
1> _Kty=std::string,
1> _Ty=mongo::BSONObj
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientinterface.h(1357): warning C4251: 'mongo::DBClientConnection::_ numConnections' : struct 'mongo::AtomicUInt' needs to have dll-interface to be used by clients of class 'mongo::DBClientConnection'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\bson\util\atomic_int.h( 35) : see declaration of 'mongo::AtomicUInt'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientcursor.h(37): warning C4275: non dll-interface class 'boost::noncopyable_:: noncopyable' used as base for dll-interface class 'mongo:: DBClientCursorInterface'
1> c:\temp\boost_1_56_0\boost\ core\noncopyable.hpp(24) : see declaration of 'boost::noncopyable_:: noncopyable'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\client\dbclientcursor.h( 37) : see declaration of 'mongo:: DBClientCursorInterface'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientcursor.h(222): warning C4251: 'mongo::DBClientCursor::batch' : class 'mongo::DBClientCursor::Batch' needs to have dll-interface to be used by clients of class 'mongo::DBClientCursor'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\client\dbclientcursor.h( 205) : see declaration of 'mongo::DBClientCursor::Batch'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientcursor.h(224): warning C4251: 'mongo::DBClientCursor::_ originalHost' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::DBClientCursor'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientcursor.h(225): warning C4251: 'mongo::DBClientCursor::ns' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::DBClientCursor'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientcursor.h(233): warning C4251: 'mongo::DBClientCursor::_ putBack' : class 'std::stack<_Ty>' needs to have dll-interface to be used by clients of class 'mongo::DBClientCursor'
1> with
1> [
1> _Ty=mongo::BSONObj
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientcursor.h(237): warning C4251: 'mongo::DBClientCursor::_ scopedHost' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::DBClientCursor'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\ dbclientcursor.h(238): warning C4251: 'mongo::DBClientCursor::_ lazyHost' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::DBClientCursor'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\connpool. h(119): warning C4251: 'mongo::PoolForHost::_ hostName' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::PoolForHost'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\connpool. h(120): warning C4251: 'mongo::PoolForHost::_pool' : class 'std::stack<_Ty>' needs to have dll-interface to be used by clients of class 'mongo::PoolForHost'
1> with
1> [
1> _Ty=mongo::PoolForHost:: StoredConnection
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\connpool. h(153): warning C4275: non dll-interface class 'mongo::PeriodicTask' used as base for dll-interface class 'mongo::DBConnectionPool'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\util\background.h(131) : see declaration of 'mongo::PeriodicTask'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\client\connpool.h(153) : see declaration of 'mongo::DBConnectionPool'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\connpool. h(239): warning C4251: 'mongo::DBConnectionPool::_ mutex' : class 'mongo::mutex' needs to have dll-interface to be used by clients of class 'mongo::DBConnectionPool'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\util\concurrency\mutex. h(74) : see declaration of 'mongo::mutex'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\connpool. h(240): warning C4251: 'mongo::DBConnectionPool::_ name' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::DBConnectionPool'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\connpool. h(247): warning C4251: 'mongo::DBConnectionPool::_ pools' : class 'std::map<_Kty,_Ty,_Pr>' needs to have dll-interface to be used by clients of class 'mongo::DBConnectionPool'
1> with
1> [
1> _Kty=mongo::DBConnectionPool: :PoolKey,
1> _Ty=mongo::PoolForHost,
1> _Pr=mongo::DBConnectionPool:: poolKeyCompare
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\connpool. h(257): warning C4275: non dll-interface class 'boost::noncopyable_:: noncopyable' used as base for dll-interface class 'mongo::AScopedConnection'
1> c:\temp\boost_1_56_0\boost\ core\noncopyable.hpp(24) : see declaration of 'boost::noncopyable_:: noncopyable'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\client\connpool.h(257) : see declaration of 'mongo::AScopedConnection'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\connpool. h(277): warning C4251: 'mongo::AScopedConnection::_ numConnections' : struct 'mongo::AtomicUInt' needs to have dll-interface to be used by clients of class 'mongo::AScopedConnection'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\bson\util\atomic_int.h( 35) : see declaration of 'mongo::AtomicUInt'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\connpool. h(361): warning C4251: 'mongo::ScopedDbConnection::_ host' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::ScopedDbConnection'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\dbclient_ rs.h(229): warning C4251: 'mongo::DBClientReplicaSet::_ setName' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::DBClientReplicaSet'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\dbclient_ rs.h(231): warning C4251: 'mongo::DBClientReplicaSet::_ masterHost' : struct 'mongo::HostAndPort' needs to have dll-interface to be used by clients of class 'mongo::DBClientReplicaSet'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\util\net\hostandport.h( 31) : see declaration of 'mongo::HostAndPort'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\dbclient_ rs.h(238): warning C4251: 'mongo::DBClientReplicaSet::_ master' : class 'boost::shared_ptr<T>' needs to have dll-interface to be used by clients of class 'mongo::DBClientReplicaSet'
1> with
1> [
1> T=mongo::DBClientConnection
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\dbclient_ rs.h(241): warning C4251: 'mongo::DBClientReplicaSet::_ lastSlaveOkHost' : struct 'mongo::HostAndPort' needs to have dll-interface to be used by clients of class 'mongo::DBClientReplicaSet'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\util\net\hostandport.h( 31) : see declaration of 'mongo::HostAndPort'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\dbclient_ rs.h(243): warning C4251: 'mongo::DBClientReplicaSet::_ lastSlaveOkConn' : class 'boost::shared_ptr<T>' needs to have dll-interface to be used by clients of class 'mongo::DBClientReplicaSet'
1> with
1> [
1> T=mongo::DBClientConnection
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\dbclient_ rs.h(244): warning C4251: 'mongo::DBClientReplicaSet::_ lastReadPref' : class 'boost::shared_ptr<T>' needs to have dll-interface to be used by clients of class 'mongo::DBClientReplicaSet'
1> with
1> [
1> T=mongo:: ReadPreferenceSetting
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\dbclient_ rs.h(252): warning C4251: 'mongo::DBClientReplicaSet::_ auths' : class 'std::map<_Kty,_Ty>' needs to have dll-interface to be used by clients of class 'mongo::DBClientReplicaSet'
1> with
1> [
1> _Kty=std::string,
1> _Ty=mongo::BSONObj
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\dbclient_ rs.h(257): warning C4251: 'mongo::DBClientReplicaSet::_ nodeSelectOracle' : class 'mongo::PseudoRandom' needs to have dll-interface to be used by clients of class 'mongo::DBClientReplicaSet'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\platform\random.h(27) : see declaration of 'mongo::PseudoRandom'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\dbclient_ rs.h(273): warning C4251: 'mongo::DBClientReplicaSet::_ lazyState' : class 'mongo::DBClientReplicaSet:: LazyState' needs to have dll-interface to be used by clients of class 'mongo::DBClientReplicaSet'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\client\dbclient_rs.h( 264) : see declaration of 'mongo::DBClientReplicaSet:: LazyState'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\dbclient_ rs.h(306): warning C4251: 'mongo::TagSet::_tags' : struct 'mongo::BSONArray' needs to have dll-interface to be used by clients of class 'mongo::TagSet'
1> c:\mongo_driver_legacy\mongo_ client_32_release\include\ mongo\bson\bsonobj.h(587) : see declaration of 'mongo::BSONArray'
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\gridfs.h( 125): warning C4251: 'mongo::GridFS::_dbName' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::GridFS'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\gridfs.h( 126): warning C4251: 'mongo::GridFS::_prefix' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::GridFS'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\gridfs.h( 127): warning C4251: 'mongo::GridFS::_filesNS' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::GridFS'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits< char>,
1> _Alloc=std::allocator<char>
1> ]
1>c:\mongo_driver_legacy\ mongo_client_32_release\ include\mongo\client\gridfs.h( 128): warning C4251: 'mongo::GridFS::_chunksNS' : class 'std::basic_string<_Elem,_ Traits,_Alloc>' needs to have
Thanks, but this is only the warning output. I'd like to see the actual invocations of the 'cl' and 'link' tools, including compiler and link flags, include paths, etc. You can omit the warning output.
Ohhh. I'm sorry.
1>------ Build started: Project: TestMongoDB, Configuration: Debug Win32 ------
1>Build started 28/10/2014 19:18:40.
1>Environment at start of build:
1>ALLUSERSPROFILE = C:\ProgramData
1>APPDATA = C:\Users\acalo.TELEFE\AppData\ Roaming
1>CommonProgramFiles = C:\Program Files (x86)\Common Files
1>CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
1>CommonProgramW6432 = C:\Program Files\Common Files
1>COMPUTERNAME = WKS063884
1>ComSpec = C:\Windows\system32\cmd.exe
1>DEFLOGDIR = C:\ProgramData\McAfee\ DesktopProtection
1>FP_NO_HOST_CHECK = NO
1>HOMEDRIVE = C:
1>HOMEPATH = \Users\acalo.TELEFE
1>LOCALAPPDATA = C:\Users\acalo.TELEFE\AppData\ Local
1>LOGONSERVER = \\TEIDC03
1> MSBuildLoadMicrosoftTargetsRea dOnly = true
1>NUMBER_OF_PROCESSORS = 8
1>OS = Windows_NT
1>Path = C:\Python27\;C:\Windows\ system32;C:\Windows;C:\ Windows\System32\Wbem;C:\ Windows\System32\ WindowsPowerShell\v1.0\;C:\ Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\ Program Files (x86)\QuickTime\QTSystem\;C:\ Program Files\PostgreSQL\9.3\lib;C:\ Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\build-boost\ include\boost-1_56\
1>PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE; .JS;.JSE;.WSF;.WSH;.MSC
1>PkgDefApplicationConfigFile = C:\Users\acalo.TELEFE\AppData\ Local\Microsoft\VisualStudio\ 11.0\devenv.exe.config
1>PROCESSOR_ARCHITECTURE = x86
1>PROCESSOR_ARCHITEW6432 = AMD64
1>PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 26 Stepping 4, GenuineIntel
1>PROCESSOR_LEVEL = 6
1>PROCESSOR_REVISION = 1a04
1>ProgramData = C:\ProgramData
1>ProgramFiles = C:\Program Files (x86)
1>ProgramFiles(x86) = C:\Program Files (x86)
1>ProgramW6432 = C:\Program Files
1>PSModulePath = C:\Windows\system32\ WindowsPowerShell\v1.0\ Modules\
1>PUBLIC = C:\Users\Public
1>SESSIONNAME = Console
1>SystemDrive = C:
1>SystemRoot = C:\Windows
1>TEMP = C:\Users\ACALO~1.TEL\AppData\ Local\Temp
1>TMP = C:\Users\ACALO~1.TEL\AppData\ Local\Temp
1>UATDATA = C:\Windows\SysWOW64\CCM\ UATData\D9F8C395-CAB8-491d- B8AC-179A1FE1BE77
1>USERDNSDOMAIN = TELEFE.COM.AR
1>USERDOMAIN = TELEFE
1>USERNAME = acalo
1>USERPROFILE = C:\Users\acalo.TELEFE
1>VisualStudioDir = \\Tlf-file-svr\users\acalo\ Visual Studio 2012
1>VisualStudioEdition = Microsoft Visual Studio Ultimate 2012
1>VisualStudioVersion = 11.0
1>VS110COMNTOOLS = C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
1>VSEDEFLOGDIR = C:\ProgramData\McAfee\ DesktopProtection
1>VSLANG = 1033
1>windir = C:\Windows
1>windows_tracing_flags = 3
1>windows_tracing_logfile = C:\BVTBin\Tests\ installpackage\csilogfile.log
1>WIX = C:\Program Files (x86)\WiX Toolset v3.7\
1>_NT_SYMBOL_PATH = D:\Symbols
1>__COMPAT_LAYER = ElevateCreateProcess
1>
1>Initial Properties:
1>__COMPAT_LAYER = ElevateCreateProcess
1>_ AfterCompileWinFXInternalDepen dsOn =
1> PrepareResourcesForSatelliteAs semblies;
1> MergeLocalizationDirectives;
1> AfterCompileWinFX
1>
1>_ApplicableDebuggers = Desktop
1>_BuildActionType = Build
1>_BuildSuffix =
1>:VCEnd
1>_ CompileTargetNameForLocalType = _CompileTemporaryAssembly
1>_DebugSymbolsProduced = true
1>_ DeploymentApplicationManifestI dentity = TestMongoDB.exe
1>_ DeploymentBuiltUpdateInterval = 0
1>_ DeploymentBuiltUpdateIntervalU nits = Days
1>_ DeploymentDeployManifestIdenti ty = TestMongoDB.application
1>_ DeploymentFileMappingExtension =
1>_ DeploymentPublishableProjectDe fault = true
1>_ DeploymentTargetApplicationMan ifestFileName = TestMongoDB.exe.manifest
1>_DeploymentUrl =
1>_DocumentationFileProduced = false
1>_ FullFrameworkReferenceAssembly Paths = C:\Program Files (x86)\Reference Assemblies\Microsoft\ Framework\.NETFramework\v4.0
1>_ GetChildProjectCopyToOutputDir ectoryItems = true
1>_ManifestDependsOn =
1> ;
1>
1> ;
1> ComputeManifestInputsTargets;
1> ;
1> Manifest;
1> ComputeManifestGeneratedLinker Inputs;
1> LinkEmbedManifest;
1>
1>_NT_SYMBOL_PATH = D:\Symbols
1>_OriginalConfiguration = Debug
1>_OriginalPlatform = Win32
1>_ PlatformToolsetFriendlyNameFor _v100 = Visual Studio 2010 (v100)
1>_ PlatformToolsetFriendlyNameFor _v110 = Visual Studio 2012 (v110)
1>_ PlatformToolsetFriendlyNameFor _v110_xp = Visual Studio 2012 - Windows XP (v110_xp)
1>_ PlatformToolsetFriendlyNameFor _v90 = Visual Studio 2008 (v90)
1>_ PlatformToolsetShortNameFor_ v100 = Visual Studio 2010
1>_ PlatformToolsetShortNameFor_ v90 = Visual Studio 2008
1>_ProjectDefaultTargets = Build
1>_PropertySheetDisplayName = Application
1>_ RequireMCPass2ForMainAssembly = false
1>_ RequireMCPass2ForSatelliteAsse mblyOnly = false
1>_ ResolveReferenceDependencies = false
1>_ResourceCompileDependsOn =
1>
1> ;
1> BeforeResourceCompile;
1> ;
1> ;
1> MakeDirsForResourceCompile;
1> ResourceCompile;
1>
1> ;
1> AfterResourceCompile;
1>
1>
1>_ResourceNameInMainAssembly = TestMongoDB.g.resources
1>_SGenDllCreated = false
1>_SGenDllName = TestMongoDB.XmlSerializers.dll
1>_ SGenGenerateSerializationAssem bliesConfig = Off
1>_TargetFrameworkDirectories = C:\Program Files (x86)\Reference Assemblies\Microsoft\ Framework\.NETFramework\v4.0
1>_UpgradePlatformToolsetFor_ v100 = v110
1>_UpgradePlatformToolsetFor_ v110 = v110
1>_UpgradePlatformToolsetFor_ v90 = v110
1> AddAdditionalExplicitAssemblyR eferences = true
1>AddAppConfigToBuildOutputs = true
1> AdditionalExplicitAssemblyRefe rences = System.Core;
1>AfterBuildCompileTargets =
1> ;
1> AfterBuildCompileEvent;
1>
1> AfterBuildGenerateSourcesTarge ts =
1>
1> ;
1> AfterBuildGenerateSources;
1> ;
1> AfterBuildGenerateSourcesEvent ;
1>
1>AfterBuildLinkTargets =
1> ;RunMergeNativeCodeAnalysis; RunNativeCodeAnalysis;
1> CreateSatelliteAssemblies;
1> _Appverifier;
1> _Deploy;
1> PrepareForRun;
1> PostBuildEvent;
1>
1>AfterClCompileTargets =
1> ;
1> AfterClCompile;
1>
1>AfterImpLibTargets =
1> ;
1> AfterImpLib;
1>
1>AfterLibTargets =
1> ;
1> AfterLib;
1>
1>AfterLinkTargets =
1> ;
1> AfterLink;
1>
1>AfterManifestTargets =
1> ;
1> AfterManifest;
1>
1>AfterMidlTargets =
1> ;
1> AfterMidl;
1>
1>AfterResourceCompileTargets =
1> ;
1> AfterResourceCompile;
1>
1> AllowedReferenceAssemblyFileEx tensions =
1> .winmd;
1> .dll;
1> .exe
1>
1> AllowedReferenceRelatedFileExt ensions =
1> .pdb;
1> .xml;
1> .pri
1>
1>AllowLocalNetworkLoopback = true
1> AllProjectOutputGroupsDependsO n =
1> ;
1> BuiltProjectOutputGroup;
1> DebugSymbolsProjectOutputGroup ;
1> DocumentationProjectOutputGrou p;
1> SatelliteDllsProjectOutputGrou p;
1> SourceFilesProjectOutputGroup;
1> ContentFilesProjectOutputGroup ;
1> SGenFilesOutputGroup
1>
1>ALLUSERSPROFILE = C:\ProgramData
1> AlwaysCompileMarkupFilesInSepa rateDomain = true
1>APPDATA = C:\Users\acalo.TELEFE\AppData\ Roaming
1>AssemblyFoldersSuffix = AssemblyFoldersEx
1>AssemblyName = TestMongoDB
1>AssemblySearchPaths =
1> D:\Desarrollos\Proyecto_MAM\ Temp\TestMongoDB\TestMongoDB\ FakesAssemblies;
1>
1> {CandidateAssemblyFiles};
1> C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\lib;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib;
1> {HintPathFromItem};
1> {TargetFrameworkDirectory};
1> {Registry:Software\Microsoft\ .NETFramework,v4.0, AssemblyFoldersEx};
1> {AssemblyFolders};
1> {GAC};
1> {RawFileName};
1> D:\Desarrollos\Proyecto_MAM\ Temp\TestMongoDB\Debug\
1>
1>
1>AssignTargetPathsDependsOn =
1>Attach = false
1>AutoUnifyAssemblyReferences = false
1>AvailablePlatforms = Any CPU,x86,x64
1>BaseIntermediateOutputPath = obj\
1>BeforeBuildCompileTargets =
1> ;
1>
1> BeforeBuildGenerateSourcesTarg ets =
1>
1> ;
1> BeforeBuildGenerateSources;
1> ;
1>
1>BeforeClCompileTargets =
1> ;
1> BeforeClCompile;
1>
1>BeforeImpLibTargets =
1> ;
1> BeforeImpLib;
1>
1>BeforeLibTargets =
1> ;
1> BeforeLib;
1>
1>BeforeLinkTargets =
1> ;
1> BeforeLink;
1>
1>BeforeManifestTargets =
1> ;
1> BeforeManifest;
1>
1>BeforeMidlTargets =
1> ;
1> BeforeMidl;
1>
1>BeforeResourceCompileTargets =
1> ;
1> BeforeResourceCompile;
1>
1>BuildCompileAction = _BuildCompileAction
1>BuildCompileTargets =
1> ;
1> _ClCompile;
1> _ResGen;
1> _ResourceCompile;
1>
1> ;
1> _ImpLib;
1> _Lib;
1> ;
1>
1>BuildDependsOn =
1> _PrepareForBuild;
1>
1> ResolveReferences;
1> PrepareForBuild;
1> InitializeBuildStatus;
1> BuildGenerateSources;
1> BuildCompile;
1> BuildLink;
1> ;
1> AfterBuild;
1> FinalizeBuildStatus;
1>
1>BuildGenerateSourcesAction = _BuildGenerateSourcesAction
1>BuildGenerateSourcesTargets =
1> ;
1> PreBuildEvent;
1> _Xsd;
1> _Midl;
1>
1>BuildingInsideVisualStudio = true
1>BuildingProject = true
1>BuildInParallel = true
1>BuildLibTargets =
1> ;
1> _ImpLib;
1> _Lib;
1>
1>BuildLinkAction = _BuildLinkAction
1>BuildLinkTargets =
1> ;
1> ComputeLegacyManifestEmbedding ;
1> _Link;
1> _ALink;
1> _Manifest;
1> RegisterOutput;
1> _XdcMake;
1> _BscMake;
1>
1>BuildProjectReferences = true
1>BuildSteps =
1> ResolveReferences;
1> PrepareForBuild;
1> InitializeBuildStatus;
1> BuildGenerateSources;
1> BuildCompile;
1> BuildLink;
1>
1>BuildSystem = MSBuild
1>BuildTaskAssembly = PresentationBuildTasks, Version=4.0.0.0, Culture=neutral, PublicKeyToken= 31bf3856ad364e35
1> BuiltProjectOutputGroupDepends On = PrepareForBuild
1>CharacterSet = Unicode
1>CleanDependsOn =
1>
1> _PrepareForClean;
1>
1>
1> BeforeClean;
1> UnmanagedUnregistration;
1> CoreClean;
1> CleanReferencedProjects;
1> CleanPublishFolder;
1> AfterClean
1> ;
1> EntityClean;
1> ;
1> ;
1> CppClean
1>
1>CleanFile = TestMongoDB.vcxproj. FileListAbsolute.txt
1>CLRSupport = false
1>ClYieldDuringToolExecution = true
1>CodeAnalysisApplyLogFileXsl = false
1> CodeAnalysisFailOnMissingRules = false
1>CodeAnalysisForceOutput = true
1> CodeAnalysisGenerateSuccessFil e = true
1> CodeAnalysisIgnoreGeneratedCod e = true
1> CodeAnalysisIgnoreInvalidTarge ts = true
1> CodeAnalysisIgnoreMissingIndir ectReferences = false
1>CodeAnalysisInputAssembly = D:\Desarrollos\Proyecto_MAM\ Temp\TestMongoDB\Debug\ TestMongoDB.exe
1>CodeAnalysisLogFile = D:\Desarrollos\Proyecto_MAM\ Temp\TestMongoDB\Debug\ TestMongoDB.exe. CodeAnalysisLog.xml
1> CodeAnalysisModuleSuppressions File = GlobalSuppressions.cpp
1>CodeAnalysisOutputToConsole = false
1> CodeAnalysisOverrideRuleVisibi lities = false
1>CodeAnalysisPath = C:\Program Files (x86)\Microsoft Visual Studio 11.0\Team Tools\Static Analysis Tools\FxCop\
1>CodeAnalysisQuiet = false
1>CodeAnalysisRuleDirectories = ;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Team Tools\Static Analysis Tools\FxCop\\Rules
1>CodeAnalysisRuleSet = NativeRecommendedRules.ruleset
1> CodeAnalysisRuleSetDirectories = ;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Team Tools\Static Analysis Tools\\Rule Sets
1> CodeAnalysisSaveMessagesToRepo rt = Active
1> CodeAnalysisSearchGlobalAssemb lyCache = true
1> CodeAnalysisStaticAnalysisDire ctory = C:\Program Files (x86)\Microsoft Visual Studio 11.0\Team Tools\Static Analysis Tools\
1>CodeAnalysisSucceededFile = D:\Desarrollos\Proyecto_MAM\ Temp\TestMongoDB\Debug\ TestMongoDB.exe. lastcodeanalysissucceeded
1>CodeAnalysisSummary = false
1>CodeAnalysisTargets = C:\Program Files (x86)\MSBuild\Microsoft\ VisualStudio\v11.0\ CodeAnalysis\Microsoft. CodeAnalysis.targets
1>CodeAnalysisTimeout = 120
1>CodeAnalysisTLogFile = Debug\CodeAnalysis.read.1.tlog
1> CodeAnalysisTreatWarningsAsErr ors = false
1>CodeAnalysisUpdateProject = false
1> CodeAnalysisUseTypeNameInSuppr ession = true
1>CodeAnalysisVerbose = false
1>CommonBuildOnlyTargets =
1> PrepareForBuild;
1> ResolveReferences;
1>
1>CommonProgramFiles = C:\Program Files (x86)\Common Files
1>CommonProgramW6432 = C:\Program Files\Common Files
1>CompileDependsOn =
1>
1> ResolveReferences;
1> ResolveKeySource;
1> SetWin32ManifestProperties;
1> _GenerateCompileInputs;
1> BeforeCompile;
1> _TimeStampBeforeCompile;
1> CoreCompile;
1> _TimeStampAfterCompile;
1> AfterCompile;
1> ;
1> _AfterCompileWinFXInternal
1>
1>CompileLicxFilesDependsOn =
1>CompileRdlFilesDependsOn = PrepareRdlFiles;RunRdlCompiler
1> CompileTargetNameForTemporaryA ssembly = CompileTemporaryAssembly
1>ComputeCompileInputsTargets =
1>
1> ;
1> ComputeMIDLGeneratedCompileInp uts;
1> ;
1> ComputeCLInputPDBName;
1> ComputeReferenceCLInput
1>
1>ComputeImpLibInputsTargets =
1>
1>
1>
1>
1> ;
1> ComputeRCGeneratedLibInputs;
1> ;
1> ComputeRCGeneratedImpLibInputs ;
1> ;
1> ComputeCustomBuildOutput;
1> ;
1> ComputeCLGeneratedImpLibInputs ;
1> ;
1> ComputeImpLibInputsFromProject ;
1>
1> ComputeIntermediateSatelliteAs sembliesDependsOn =
1> CreateManifestResourceNames
1>
1>ComputeLibInputsTargets =
1> ComputeLibAdditionalOptions;
1>
1>
1>
1>
1>
1> ;
1> ComputeRCGeneratedLibInputs;
1> ;
1> ComputeCustomBuildOutput;
1> ;
1> ComputeCLGeneratedLibInputs;
1> ;
1> ComputeLibInputsFromProject;
1> ;
1> ComputeReferenceLibInputs;
1>
1>
1>ComputeLinkInputsTargets =
1>
1>
1>
1>
1>
1> ;
1> ComputeRCGeneratedLinkInputs;
1> ;
1> ComputeManifestGeneratedLinker Inputs;
1> ;
1> ComputeCustomBuildOutput;
1> ;
1> ComputeCLGeneratedLinkInputs;
1> ;
1> ComputeLinkInputsFromProject;
1> ;
1> ComputeReferenceLinkInputs;
1>
1>ComputeManifestInputsTargets =
1> ;
1> ComputeManifestInputsTargets;
1>
1>COMPUTERNAME = WKS063884
1>ComReferenceExecuteAsTool = false
1>ComReferenceNoClassMembers = false
1>ComSpec = C:\Windows\system32\cmd.exe
1>Configuration = Debug
1>ConfigurationName = Debug
1>ConfigurationType = Application
1> ConsiderPlatformAsProcessorArc hitecture = true
1> ContentFilesProjectOutputGroup DependsOn = PrepareForBuild; AssignTargetPaths; PrepareForBuild; AssignTargetPaths; MakeDirsForFxc
1>ContinueOnError = false
1>CoreBuildDependsOn =
1> BuildOnlySettings;
1> PrepareForBuild;
1> PreBuildEvent;
1> ResolveReferences;
1> PrepareResources;
1> ResolveKeySource;
1> Compile;
1> ExportWindowsMDFile;
1> UnmanagedUnregistration;
1> GenerateSerializationAssemblie s;
1> CreateSatelliteAssemblies;
1> GenerateManifests;
1> GetTargetPath;
1> PrepareForRun;
1> UnmanagedRegistration;
1> IncrementalClean;
1> PostBuildEvent
1>
1>CoreCleanDependsOn =
1>CoreCompileDependsOn =
1> DesignTimeXamlMarkupCompilatio n;
1>
1> DesignTimeMarkupCompilation;
1>
1>
1>
1>CoreCppCleanDependsOn =
1>CoreResGenDependsOn =
1>CppCleanDependsOn =
1> BeforeCppClean;
1> ;
1> CoreCppClean;
1> AfterCppClean;
1> ;PGInstrumentedClean
1>CppCleanLogFile = TestMongoDB.Build.CppClean.log
1> CreateCustomManifestResourceNa mesDependsOn =
1> CreateHardLinksForCopyAddition alFilesIfPossible = false
1> CreateManifestResourceNamesDep endsOn =
1> CreateSatelliteAssembliesDepen dsOn =
1> _ GenerateSatelliteAssemblyInput s;
1> ComputeIntermediateSatelliteAs semblies;
1> GenerateSatelliteAssemblies
1>
1>CRTDefinitionalFile = C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\VCProjectDefault\ Microsoft.AppX. VCFrameworkReferences.xml
1>CrtSDKReferenceInclude = Microsoft.VCLibs, Version=11.0
1>CrtSDKReferenceVersion = 11.0
1> CurrentSolutionConfigurationCo ntents = <SolutionConfiguration>
1><ProjectConfiguration Project="{cfdcfb13-2557-4104- 9969-9e374c752e62}" AbsolutePath="D:\Desarrollos\ Proyecto_MAM\Temp\TestMongoDB\ TestMongoDB\TestMongoDB. vcxproj">Debug|Win32</ ProjectConfiguration>
1></SolutionConfiguration>
1> CustomAfterMicrosoftCommonProp s = C:\Program Files (x86)\MSBuild\v4.0\Custom. After.Microsoft.Common.props
1> CustomAfterMicrosoftCommonTarg ets = C:\Program Files (x86)\MSBuild\v4.0\Custom. After.Microsoft.Common.Targets
1> CustomBeforeMicrosoftCommonPro ps = C:\Program Files (x86)\MSBuild\v4.0\Custom. Before.Microsoft.Common.props
1> CustomBeforeMicrosoftCommonTar gets = C:\Program Files (x86)\MSBuild\v4.0\Custom. Before.Microsoft.Common. Targets
1>CustomBuildAfterTargets = BscMake
1>CustomBuildBeforeTargets = PostBuildEvent
1>CustomBuildToolAfterTargets = PreBuildEvent
1>CustomBuildToolBeforeTargets = Midl
1>DebugCppRuntimeFilesPath = C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\redist\Debug_ NonRedist\x86
1>DebuggerFlavor = WindowsLocalDebugger
1>DebuggerLaunchApplication = true
1> DebuggerRequireAuthentication = true
1>DebuggerType = NativeOnly
1>DebugSymbols = true
1> DebugSymbolsProjectOutputGroup DependsOn =
1> DefaultLanguageSourceExtension = .cpp
1>DefaultPlatformToolset = v110
1>DefaultToolArchitecture = Native32Bit
1>DEFLOGDIR = C:\ProgramData\McAfee\ DesktopProtection
1>DelayImplib = Delayimp.lib
1>DelaySign =
1>DeploymentType = Installed
1> DesignTimeIntermediateOutputPa th = Debug\InProcessTempFiles\
1> DesignTimeResolveAssemblyRefer encesDependsOn =
1> GetFrameworkPaths;
1> GetReferenceAssemblyPaths;
1> ResolveReferences
1>
1>DevEnvDir = C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\
1> DocumentationProjectOutputGrou pDependsOn = ResolvedXDCMake; ComputeCLCompileGeneratedXDCFi les
1>DocumentLibraryDependencies = true
1>EmbeddedWin32Manifest =
1>EmbedManifest = true
1>EmbedManifestBy = LINK
1> EnableManagedIncrementalBuild = false
1>EntityDeployDependsOn =
1> EntityDeployIntermediateResour cePath = Debug\edmxResourcesToEmbed\
1>ExcludePath = C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include;C:\ Program Files (x86)\Windows Kits\8.0\Include\um;C:\Program Files (x86)\Windows Kits\8.0\Include\shared;C:\ Program Files (x86)\Windows Kits\8.0\Include\winrt;;C:\ Windows\Microsoft.NET\ Framework\v4.0.30319\;C:\ Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\lib;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib;
1>ExecutablePath = C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin;C:\Program Files (x86)\Windows Kits\8.0\bin\x86;;C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\bin;C:\ Program Files (x86)\Microsoft Visual Studio 11.0\Common7\tools;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\ide;C:\Program Files (x86)\HTML Help Workshop;C:\Windows\Microsoft. NET\Framework\v4.0.30319\;C:\ Program Files (x86)\Microsoft Visual Studio 11.0\;C:\Windows\SysWow64;;C:\ Python27\;C:\Windows\system32; C:\Windows;C:\Windows\ System32\Wbem;C:\Windows\ System32\WindowsPowerShell\v1. 0\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\ Program Files (x86)\QuickTime\QTSystem\;C:\ Program Files\PostgreSQL\9.3\lib;C:\ Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\build-boost\ include\boost-1_56\;
1> ExpandSDKAllowedReferenceExten sions =
1> .winmd;
1> .dll
1>
1>ExpandSDKReferencesDependsOn =
1> ResolveSDKReferences
1>
1>ExtensionsToDeleteOnClean = *.cdf;*.cache;*.obj;*.ilk;*. resources;*.tlb;*.tli;*.tlh;*. tmp;*.rsp;*.pgc;*.pgd;*.meta;* .tlog;*.manifest;*.res;*.pch;* .exp;*.idb;*.rep;*.xdc;*.pdb;* _manifest.rc;*.bsc;*.sbr;*. xml;*.metagen;*.bi;D:\ Desarrollos\Proyecto_MAM\Temp\ TestMongoDB\Debug\TestMongoDB. exe.manifest;D:\Desarrollos\ Proyecto_MAM\Temp\TestMongoDB\ Debug\TestMongoDB.tlb;D:\ Desarrollos\Proyecto_MAM\Temp\ TestMongoDB\Debug\TestMongoDB. pdb;D:\Desarrollos\Proyecto_ MAM\Temp\TestMongoDB\Debug\ TestMongoDB.exe;D:\ Desarrollos\Proyecto_MAM\Temp\ TestMongoDB\Debug\TestMongoDB. bsc;D:\Desarrollos\Proyecto_ MAM\Temp\TestMongoDB\Debug\ TestMongoDB.ilk;D:\ Desarrollos\Proyecto_MAM\Temp\ TestMongoDB\Debug\TestMongoDB. exe.intermediate.manifest;D:\ Desarrollos\Proyecto_MAM\Temp\ TestMongoDB\Debug\TestMongoDB. exe.CodeAnalysisLog.xml;D:\ Desarrollos\Proyecto_MAM\Temp\ TestMongoDB\Debug\TestMongoDB. exe.lastcodeanalysissucceeded
1>FakesBinPath = C:\Program Files (x86)\MSBuild\Microsoft\ VisualStudio\v11.0\Fakes
1>FakesContinueOnError = false
1> FakesGenerateBeforeBuildDepend sOn =
1> ;
1> ResolveFakesReferences;
1> BuildFakesAssemblies;
1>
1>FakesImported = true
1>FakesIntermediatePath = D:\Desarrollos\Proyecto_MAM\ Temp\TestMongoDB\TestMongoDB\ Debug\Fakes
1>FakesOutputPath = D:\Desarrollos\Proyecto_MAM\ Temp\TestMongoDB\TestMongoDB\ FakesAssemblies
1>FakesTargets = C:\Program Files (x86)\MSBuild\Microsoft\ VisualStudio\v11.0\Fakes\ Microsoft.QualityTools. Testing.Fakes.targets
1>FakesTasks = C:\Program Files (x86)\MSBuild\Microsoft\ VisualStudio\v11.0\Fakes\ Microsoft.QualityTools. Testing.Fakes.Tasks.dll
1>FakesToolsPath = C:\Program Files (x86)\MSBuild\Microsoft\ VisualStudio\v11.0\Fakes
1>FakesVerbosity = Warning
1>FP_NO_HOST_CHECK = NO
1>Framework20Dir = @(_ TargetFramework20DirectoryItem )
1>Framework30Dir = @(_ TargetFramework30DirectoryItem )
1>Framework35Dir = @(_ TargetFramework35DirectoryItem )
1>Framework40Dir = @(_ TargetFramework40DirectoryItem )
1>FrameworkDir = C:\Windows\Microsoft.NET\ Framework\
1>FrameworkDir_110 = C:\Windows\Microsoft.NET\ Framework\
1>FrameworkPathOverride = C:\Program Files (x86)\Reference Assemblies\Microsoft\ Framework\.NETFramework\v4.0
1>FrameworkRegistryBase = Software\Microsoft\. NETFramework
1>FrameworkSdkDir = C:\Program Files (x86)\Windows Kits\8.0\
1>FrameworkSDKRoot = C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\
1>FrameworkVersion = v4.5
1>FullReferenceAssemblyNames = Full
1>FxCompileAfterTargets = CustomBuild
1>FxCompileBeforeTargets = Midl
1>GenerateClickOnceManifests =
1>GeneratedFileExtension = .g.cpp
1>GenerateManifest = true
1>GenerateManifestsDependsOn =
1> SetWin32ManifestProperties;
1> GenerateApplicationManifest;
1> GenerateDeploymentManifest
1>
1> GenerateTargetFrameworkAttribu te = false
1> GetCopyToOutputDirectoryItemsD ependsOn =
1> AssignTargetPaths;
1> _ SplitProjectReferencesByFileEx istence
1>
1>GetFrameworkPathsDependsOn =
1> GetReferenceAssemblyPathsDepen dsOn =
1> ;
1> GetWinFXPath
1>
1>GetTargetPathDependsOn =
1> GPURefDebuggerBreakOnAllThread s = GPURefBreakOncePerWarp
1>HighEntropyVA = false
1>HOMEDRIVE = C:
1>HOMEPATH = \Users\acalo.TELEFE
1>HostInBrowser = false
1>IgnoreImportLibrary = false
1> ImplicitlyExpandDesignTimeFaca desDependsOn =
1> ;
1> GetReferenceAssemblyPaths
1>
1> ImportByWildcardAfterMicrosoft CommonTargets = true
1> ImportByWildcardAfterMicrosoft NetFrameworkProps = true
1> ImportByWildcardAfterMicrosoft NetFrameworkTargets = true
1> ImportByWildcardBeforeMicrosof tCommonTargets = true
1> ImportByWildcardBeforeMicrosof tNetFrameworkProps = true
1> ImportByWildcardBeforeMicrosof tNetFrameworkTargets = true
1> ImportUserLocationsByWildcardA fterMicrosoftCommonTargets = true
1> ImportUserLocationsByWildcardA fterMicrosoftNetFrameworkProps = true
1> ImportUserLocationsByWildcardA fterMicrosoftNetFrameworkTarge ts = true
1> ImportUserLocationsByWildcardB eforeMicrosoftCommonTargets = true
1> ImportUserLocationsByWildcardB eforeMicrosoftNetFrameworkProp s = true
1> ImportUserLocationsByWildcardB eforeMicrosoftNetFrameworkTarg ets = true
1>IncludePath = C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include;C:\ Program Files (x86)\Windows Kits\8.0\Include\um;C:\Program Files (x86)\Windows Kits\8.0\Include\shared;C:\ Program Files (x86)\Windows Kits\8.0\Include\winrt;;
1>IncludeVersionInInteropName = true
1>IntDir = Debug\
1>IntermediateOutputPath = Debug\
1>InteropOutputPath = Interop\
1>IsApplication = true
1>Keyword = Win32Proj
1>LangID = 1033
1>LangName = en-US
1>Language = C++
1>LastBuildState = Debug\TestMongoDB. lastbuildstate
1>LastBuildUnsuccessful = Debug\TestMongoDB. unsuccessfulbuild
1>LibraryPath = C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\lib;C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86;;
1>LibraryWPath = C:\Program Files (x86)\Windows Kits\8.0\References\ CommonConfiguration\Neutral
1>LinkCompiled = true
1>LinkIncremental = true
1>LoadTimeSensitiveProperties =
1> ;
1>
1>LoadTimeSensitiveTargets =
1> ;
1> XamlMarkupCompilePass1;
1>
1>LOCALAPPDATA = C:\Users\acalo.TELEFE\AppData\ Local
1>LocalDebuggerAttach = False
1>LocalDebuggerCommand = D:\Desarrollos\Proyecto_MAM\ Temp\TestMongoDB\Debug\ TestMongoDB.exe
1>LocalDebuggerDebuggerType = Auto
1> LocalDebuggerMergeEnvironment = true
1>LocalDebuggerSQLDebugging = False
1> LocalDebuggerWorkingDirectory = D:\Desarrollos\Proyecto_MAM\ Temp\TestMongoDB\TestMongoDB\
1>LocalGPUDebuggerTargetType = {F4453496-1DB8-47F8-A7D5- 31EBDDC2EC96}
1> LocalizationDirectivesToLocFil e = None
1>LOGONSERVER = \\TEIDC03
1>ManagedAssembly = false
1> ManagedIncrementalBuildProcess DependencyGraphAfterTarget =
1> ClCompile
1>
1> ManagedIncrementalBuildProcess DependencyGraphBeforeTarget =
1> ClCompile
1>
1> MarkupCompilePass2ForMainAssem blyDependsOn =
1> GenerateTemporaryTargetAssembl y;
In this days, I compiled static mongo driver c++
Boost librery
b2 install --prefix="C:\TRABAJOS\ Personal\Desarrollos\Mongo_ Driver\Packet\boost_1_56_0" --build-dir="C:\TRABAJOS\ Personal\Desarrollos\Mongo_ Driver\Packet\boost_1_56_0" --build-type=complete toolset=msvc stage
Mongo librery
C:\Python27\Scripts\scons --64 --release --use-system-boost --full --prefix=C:\TRABAJOS\Personal\ Desarrollos\Mongo_Driver\ Packet\mongo_client_64bits_ 26compat_2_6_5 --cpppath=C:\TRABAJOS\ Personal\Desarrollos\Mongo_ Driver\Packet\boost_1_56_0\ include\boost-1_56 --libpath=C:\TRABAJOS\ Personal\Desarrollos\Mongo_ Driver\Packet\boost_1_56_0\lib install-mongoclient
But when I call from Visual Studio show me this error
main.obj : error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_ category(void)" (?system_category@system@ boost@@YAAEBVerror_category@12 @XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'native_ecat''(void)" (??__Enative_ecat@system@ boost@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_ category(void)" (?generic_category@system@ boost@@YAAEBVerror_category@12 @XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'errno_ecat''(void)" (??__Eerrno_ecat@system@boost@ @YAXXZ)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl mongo::DBClientConnection:: DBClientConnection(bool,class mongo::DBClientReplicaSet *,double)" (__imp_??0DBClientConnection@ mongo@@QEAA@_ NPEAVDBClientReplicaSet@1@N@Z) referenced in function main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl mongo::DBClientConnection::~ DBClientConnection(void)" (__imp_??1DBClientConnection@ mongo@@UEAA@XZ) referenced in function main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl mongo::DBClientConnection:: connect(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?connect@ DBClientConnection@mongo@@ QEAAXAEBV?$basic_string@DU?$ char_traits@D@std@@V?$ allocator@D@2@@std@@@Z) referenced in function main
debug\MongoConnect.exe : fatal error LNK1120: 5 unresolved externals
Can you help me with this??
When you link an application against a static archive, you must also link the application against all of the dependencies of that archive. Archives, unlike DLLs or shared objects, do not record their dependencies. I suspect that you need to add the boost system library to the link line of your application.
Also, please be aware, if you are not already, that if you intend to consume the client library statically, then all translation units must have STATIC_LIBMONGOCLIENT defined before including dbclient.h or bson.h. This prevents expansion of the dllimport/dllexport macros which would otherwise break linking.
Finally I was able to compile the driver.
I used this parameters in Windows:
Boost 1.56.0
b2 install --prefix="C:\Packet\boost_1_ 56_0-64Bits" --build-dir="C:\Packet\boost_ 1_56_0-64Bits" --build-type=complete toolset=msvc address-model=64 stage
MongoDB Driver C++
C:\Python27\Scripts\scons --64 --release --use-system-boost --full --dynamic-windows --sharedclient --prefix=C:\Packet\mongo_ client\Release --cpppath=C:\Packet\boost_1_ 56_0-64Bits\include\boost-1_56 --libpath=C:\Packet\boost_1_ 56_0-64Bits\lib install-mongoclient
C:\Python27\Scripts\scons --64 --dbg=on --opt=off --use-system-boost --full --dynamic-windows --sharedclient --prefix=C:\Packet\mongo_ client\Debug --cpppath=C:\Packet\boost_1_ 56_0-64Bits\include\boost-1_56 --libpath=C:\Packet\boost_1_ 56_0-64Bits\lib install-mongoclient
My Opereting System is: Windows 7 64 bits and update my Visual Studio to VS2013 and QT 5.3.2
Thank you for your help. Now I can continue my project in three environments: Windows, Linux and Mac-OsX
댓글 없음:
댓글 쓰기