Hi guys… I have spent some days trying to compiling mongo-clien-cxx driver for windows and after some efforts, my compilation doesn’t link well against boost.I need to say that I’m not a windows user… I’ve installed Visual Studio 2010 and I had compiled the boost using this configuration…
boost files are generated like I show u in the image boost-lib-dir.png
well… the first output of the compilation is:scons: Reading SConscript files ...scons version: 2.3.2python version: 2 7 8 'final' 0Checking whether the C++ compiler works... (cached) yesChecking whether the C compiler works... (cached) yesChecking if C++ compiler "$CC" is MSVC... (cached) yesChecking if C compiler "cl" is MSVC... (cached) yesChecking if toolchain is in 64-bit mode... (cached) noChecking if we are using libstdc++... (cached) noWARNING: Cannot disable C++11 features when using MSVCChecking if we are on a POSIX system... (cached) noChecking for VS 2013 Update 2 or Later... (cached) noChecking for __declspec(thread)... (cached) yesChecking for C++11 <atomic> support... (cached) noChecking for C++ header file boost/version.hpp... (cached) yesChecking for C header file unistd.h... (cached) noChecking whether timegm is declared... (cached) noscons: done reading SConscript files.scons: Building targets ...link /nologo /WX /DEBUG /INCREMENTAL:NO /OUT:build\win32\normal\arrayExample.exe /LIBPATH:build\win32\normal /LIBPATH:src /LIBPATH:C:\boost\lib ws2_32.lib DbgHelp.lib /PDB:build\win32\normal\arrayExample.pdb /DEBUG build\win32\normal\mongo\client\examples\arrayExample.objLINK : fatal error LNK1104: cannot open file 'libboost_date_time-vc100-mt-s-1_55.lib'scons: building terminated because of errors.
I could see that my boost libs has not “-s” string in its name, so i change the name of the thread, filesystem, chrono and system boost libraries, because they are libs which the compilation say that it need… and after that, the I receive the following link error:
any idea guys ??? sorry if my question are noobs, but I’m not windows user !!!!!!!
--You received this message because you are subscribed to the Google Groups "mongodb-user"To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/2364a3a6-dbf2-421b-a1ff-a40d802a44b1%40googlegroups.com.
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
#include <WinSock2.h>
#include <Windows.h>
#include "stdafx.h"
#include <mongo\client\dbclient.h>
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/19b5d234-90d2-47a2-971e-cf85f4aa203f%40googlegroups.com.
#ifndef _WINSOCK2API_
#define _WINSOCK2API_
#define _WINSOCKAPI_ /* Prevent inclusion of winsock.h in windows.h */
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/e879f5d8-84af-4e52-be72-5d6dc1e30b1c%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/85586e89-ed2c-43d3-ae30-14400378de9b%40googlegroups.com.
#include <WinSock2.h>
#include <Windows.h>
#include <mongo\client\dbclient.h>
#include "stdafx.h"
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/cbd56e83-56ca-445e-959c-5f527c34022b%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/bc792a87-af76-4783-88f2-391c3765c51b%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/8f8cd5ce-9a9c-402d-b84e-8bdd8f7c0fe9%40googlegroups.com.
#include <mongo/bson/bson.h>
#include <mongo/client/dbclient.h>
int main(int argc, char *argv[])
{
mongo::Query yy;
}
17:07:54: Running steps for project untitled5...
17:07:54: Configuration unchanged, skipping qmake step.
17:07:54: Starting: "C:\Qt\Qt5.3.1\Tools\QtCreator\bin\jom.exe"
C:\Qt\Qt5.3.1\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc /Fddebug\untitled5.pdb -DUNICODE -DWIN32 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I"..\..\Qt\Qt5.3.1\5.3\msvc2012_opengl\include" -I"..\..\Qt\Qt5.3.1\5.3\msvc2012_opengl\include\QtWidgets" -I"..\..\Qt\Qt5.3.1\5.3\msvc2012_opengl\include\QtGui" -I"..\..\Qt\Qt5.3.1\5.3\msvc2012_opengl\include\QtCore" -I"debug" -I"." -I"." -I"..\..\Qt\Qt5.3.1\5.3\msvc2012_opengl\mkspecs\win32-msvc2012" -Fodebug\ @C:\Users\freddy\AppData\Local\Temp\main.obj.2400.16.jom
main.cpp
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/assert_util.h(105) : warning C4100: 'ss' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/goodies.h(153) : warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files\Microsoft Visual Studio 11.0\VC\INCLUDE\string.h(191) : see declaration of 'strncpy'
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bson_db.h(70) : warning C4100: 'id' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bson_db.h(76) : warning C4100: 'id' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bson_db.h(82) : warning C4100: 'id' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bson_db.h(89) : warning C4100: 'id' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bson_db.h(95) : warning C4100: 'id' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclientinterface.h(546) : warning C4100: 'm' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclientinterface.h(548) : warning C4100: 'nReturned' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclientinterface.h(548) : warning C4100: 'data' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/connpool.h(133) : warning C4100: 'conn' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/connpool.h(134) : warning C4100: 'conn' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/connpool.h(135) : warning C4100: 'conn' : unreferenced formal parameter
..\untitled5\main.cpp(7) : warning C4100: 'argv' : unreferenced formal parameter
..\untitled5\main.cpp(7) : warning C4100: 'argc' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/util/builder.h(301) : warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files\Microsoft Visual Studio 11.0\VC\INCLUDE\stdio.h(349) : see declaration of '_snprintf'
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/util/builder.h(297) : while compiling class template member function 'void mongo::StringBuilderImpl<Allocator>::appendDoubleNice(double)'
with
[
Allocator=mongo::TrivialAllocator
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bson-inl.h(674) : see reference to function template instantiation 'void mongo::StringBuilderImpl<Allocator>::appendDoubleNice(double)' being compiled
with
[
Allocator=mongo::TrivialAllocator
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/hex.h(47) : see reference to class template instantiation 'mongo::StringBuilderImpl<Allocator>' being compiled
with
[
Allocator=mongo::TrivialAllocator
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/util/builder.h(336) : warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files\Microsoft Visual Studio 11.0\VC\INCLUDE\stdio.h(349) : see declaration of '_snprintf'
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/util/builder.h(272) : see reference to function template instantiation 'mongo::StringBuilderImpl<Allocator> &mongo::StringBuilderImpl<Allocator>::SBNUM<int>(T,int,const char *)' being compiled
with
[
Allocator=mongo::TrivialAllocator,
T=int
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/util/builder.h(272) : see reference to function template instantiation 'mongo::StringBuilderImpl<Allocator> &mongo::StringBuilderImpl<Allocator>::SBNUM<int>(T,int,const char *)' being compiled
with
[
Allocator=mongo::TrivialAllocator,
T=int
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/util/builder.h(271) : while compiling class template member function 'mongo::StringBuilderImpl<Allocator> &mongo::StringBuilderImpl<Allocator>::operator <<(int)'
with
[
Allocator=mongo::TrivialAllocator
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bsonelement.h(490) : see reference to function template instantiation 'mongo::StringBuilderImpl<Allocator> &mongo::StringBuilderImpl<Allocator>::operator <<(int)' being compiled
with
[
Allocator=mongo::TrivialAllocator
]
echo 1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ "debug\\untitled5.exe.embed.manifest">debug\untitled5.exe_manifest.rc
if not exist debug\untitled5.exe if exist debug\untitled5.exe.embed.manifest del debug\untitled5.exe.embed.manifest
if exist debug\untitled5.exe.embed.manifest copy /Y debug\untitled5.exe.embed.manifest debug\untitled5.exe_manifest.bak
link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST /MANIFESTFILE:debug\untitled5.exe.embed.manifest /OUT:debug\untitled5.exe @C:\Users\freddy\AppData\Local\Temp\untitled5.exe.2400.5054.jom
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall mongo::Query::Query(void)" (__imp_??0Query@mongo@@QAE@XZ) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall mongo::Query::~Query(void)" (__imp_??1Query@mongo@@QAE@XZ) referenced in function _main
debug\untitled5.exe : fatal error LNK1120: 2 unresolved externals
jom: C:\qt-projects\build-untitled5-Desktop_Qt_5_3_MSVC2012_OpenGL_32bit-Debug\Makefile.Debug [debug\untitled5.exe] Error 1120
jom: C:\qt-projects\build-untitled5-Desktop_Qt_5_3_MSVC2012_OpenGL_32bit-Debug\Makefile [debug] Error 2
17:07:59: The process "C:\Qt\Qt5.3.1\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project untitled5 (kit: Desktop Qt 5.3 MSVC2012 OpenGL 32bit)
When executing step 'Make'
17:07:59: Elapsed time: 00:05.
I can't link against the libmongoclient.lib generated by the compilation and I don't know why. I give you the output to show you that there is a lot of warnings.
another question for you is: how can I generate a libmongoclient.dll file and not a libmongoclient.lib file ?
regards and thank you
#include <WinSock2.h>
#include <Windows.h>
#include <mongo/client/dbclient.h>
int main(int argc, char *argv[])
{
mongo::BSONObj obj;
}
error:
17:33:13: Running steps for project untitled...
17:33:13: Configuration unchanged, skipping qmake step.
17:33:13: Starting: "C:\Qt\Qt5.3.1\Tools\QtCreator\bin\jom.exe"
C:\Qt\Qt5.3.1\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc /Fddebug\untitled.pdb -DUNICODE -DWIN32 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I"..\..\Qt\Qt5.3.1\5.3\msvc2012_opengl\include" -I"..\..\Qt\Qt5.3.1\5.3\msvc2012_opengl\include\QtWidgets" -I"..\..\Qt\Qt5.3.1\5.3\msvc2012_opengl\include\QtGui" -I"..\..\Qt\Qt5.3.1\5.3\msvc2012_opengl\include\QtCore" -I"debug" -I"." -I"." -I"..\..\Qt\Qt5.3.1\5.3\msvc2012_opengl\mkspecs\win32-msvc2012" -Fodebug\ @C:\Users\freddy\AppData\Local\Temp\main.obj.1660.16.jom
main.cpp
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/assert_util.h(105) : warning C4100: 'ss' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/goodies.h(153) : warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files\Microsoft Visual Studio 11.0\VC\INCLUDE\string.h(191) : see declaration of 'strncpy'
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\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'
C:\Program Files\Windows Kits\8.0\include\um\mongo/logger/log_severity.h(32) : see declaration of 'mongo::logger::LogSeverity'
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
T=mongo::BSONObj::Holder
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bsonmisc.h(201) : warning C4275: non dll-interface class 'boost::noncopyable_::noncopyable' used as base for dll-interface class 'mongo::BSONObjBuilderValueStream'
C:\Program Files\Windows Kits\8.0\include\um\boost/noncopyable.hpp(24) : see declaration of 'boost::noncopyable_::noncopyable'
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bsonmisc.h(201) : see declaration of 'mongo::BSONObjBuilderValueStream'
C:\Program Files\Windows Kits\8.0\include\um\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'
C:\Program Files\Windows Kits\8.0\include\um\mongo/base/string_data.h(43) : see declaration of 'mongo::StringData'
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Ty=mongo::BSONObjBuilder
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bsonobjbuilder.h(52) : warning C4275: non dll-interface class 'mongo::BSONBuilderBase' used as base for dll-interface class 'mongo::BSONObjBuilder'
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bson_builder_base.h(29) : see declaration of 'mongo::BSONBuilderBase'
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bsonobjbuilder.h(52) : see declaration of 'mongo::BSONObjBuilder'
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bsonobjbuilder.h(52) : warning C4275: non dll-interface class 'boost::noncopyable_::noncopyable' used as base for dll-interface class 'mongo::BSONObjBuilder'
C:\Program Files\Windows Kits\8.0\include\um\boost/noncopyable.hpp(24) : see declaration of 'boost::noncopyable_::noncopyable'
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bsonobjbuilder.h(52) : see declaration of 'mongo::BSONObjBuilder'
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
Allocator=mongo::TrivialAllocator
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bson_db.h(70) : warning C4100: 'id' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bson_db.h(76) : warning C4100: 'id' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bson_db.h(82) : warning C4100: 'id' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bson_db.h(89) : warning C4100: 'id' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bson_db.h(95) : warning C4100: 'id' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\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'
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/net/sock.h(93) : see declaration of 'mongo::SockAddr'
C:\Program Files\Windows Kits\8.0\include\um\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'
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/net/sock.h(93) : see declaration of 'mongo::SockAddr'
C:\Program Files\Windows Kits\8.0\include\um\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'
C:\Program Files\Windows Kits\8.0\include\um\mongo/logger/log_severity.h(32) : see declaration of 'mongo::logger::LogSeverity'
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Ty=mongo::HostAndPort
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\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'
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/concurrency/mutex.h(74) : see declaration of 'mongo::mutex'
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
T=mongo::BSONObj
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
T=std::string
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
T=mongo::BSONArray
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclientinterface.h(546) : warning C4100: 'm' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclientinterface.h(548) : warning C4100: 'nReturned' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclientinterface.h(548) : warning C4100: 'data' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclientinterface.h(557) : warning C4275: non dll-interface class 'boost::noncopyable_::noncopyable' used as base for dll-interface class 'mongo::DBClientInterface'
C:\Program Files\Windows Kits\8.0\include\um\boost/noncopyable.hpp(24) : see declaration of 'boost::noncopyable_::noncopyable'
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclientinterface.h(557) : see declaration of 'mongo::DBClientInterface'
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Kty=std::string
]
C:\Program Files\Windows Kits\8.0\include\um\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'
C:\Program Files\Windows Kits\8.0\include\um\mongo/logger/log_severity.h(32) : see declaration of 'mongo::logger::LogSeverity'
C:\Program Files\Windows Kits\8.0\include\um\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'
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclientinterface.h(828) : see declaration of 'mongo::DBClientWithCommands::MROutput'
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
Signature=void (mongo::BSONObjBuilder *)
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
Signature=void (const mongo::BSONObj &,const std::string &)
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_WordType=__int64
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
T=mongo::MessagingPort
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
T=mongo::SockAddr
]
C:\Program Files\Windows Kits\8.0\include\um\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'
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/time_support.h(104) : see declaration of 'mongo::Backoff'
C:\Program Files\Windows Kits\8.0\include\um\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'
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/net/hostandport.h(31) : see declaration of 'mongo::HostAndPort'
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Kty=std::string,
_Ty=mongo::BSONObj
]
C:\Program Files\Windows Kits\8.0\include\um\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'
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/util/atomic_int.h(35) : see declaration of 'mongo::AtomicUInt'
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclientcursor.h(37) : warning C4275: non dll-interface class 'boost::noncopyable_::noncopyable' used as base for dll-interface class 'mongo::DBClientCursorInterface'
C:\Program Files\Windows Kits\8.0\include\um\boost/noncopyable.hpp(24) : see declaration of 'boost::noncopyable_::noncopyable'
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclientcursor.h(37) : see declaration of 'mongo::DBClientCursorInterface'
C:\Program Files\Windows Kits\8.0\include\um\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'
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclientcursor.h(205) : see declaration of 'mongo::DBClientCursor::Batch'
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Ty=mongo::BSONObj
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Ty=mongo::PoolForHost::StoredConnection
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/connpool.h(133) : warning C4100: 'conn' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/connpool.h(134) : warning C4100: 'conn' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/connpool.h(135) : warning C4100: 'conn' : unreferenced formal parameter
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/connpool.h(153) : warning C4275: non dll-interface class 'mongo::PeriodicTask' used as base for dll-interface class 'mongo::DBConnectionPool'
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/background.h(131) : see declaration of 'mongo::PeriodicTask'
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/connpool.h(153) : see declaration of 'mongo::DBConnectionPool'
C:\Program Files\Windows Kits\8.0\include\um\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'
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/concurrency/mutex.h(74) : see declaration of 'mongo::mutex'
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Kty=mongo::DBConnectionPool::PoolKey,
_Ty=mongo::PoolForHost,
_Pr=mongo::DBConnectionPool::poolKeyCompare
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/connpool.h(257) : warning C4275: non dll-interface class 'boost::noncopyable_::noncopyable' used as base for dll-interface class 'mongo::AScopedConnection'
C:\Program Files\Windows Kits\8.0\include\um\boost/noncopyable.hpp(24) : see declaration of 'boost::noncopyable_::noncopyable'
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/connpool.h(257) : see declaration of 'mongo::AScopedConnection'
C:\Program Files\Windows Kits\8.0\include\um\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'
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/util/atomic_int.h(35) : see declaration of 'mongo::AtomicUInt'
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclient_rs.h(215) : 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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclient_rs.h(217) : warning C4251: 'mongo::DBClientReplicaSet::_masterHost' : struct 'mongo::HostAndPort' needs to have dll-interface to be used by clients of class 'mongo::DBClientReplicaSet'
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/net/hostandport.h(31) : see declaration of 'mongo::HostAndPort'
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclient_rs.h(224) : warning C4251: 'mongo::DBClientReplicaSet::_master' : class 'boost::shared_ptr<T>' needs to have dll-interface to be used by clients of class 'mongo::DBClientReplicaSet'
with
[
T=mongo::DBClientConnection
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclient_rs.h(227) : warning C4251: 'mongo::DBClientReplicaSet::_lastSlaveOkHost' : struct 'mongo::HostAndPort' needs to have dll-interface to be used by clients of class 'mongo::DBClientReplicaSet'
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/net/hostandport.h(31) : see declaration of 'mongo::HostAndPort'
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclient_rs.h(229) : warning C4251: 'mongo::DBClientReplicaSet::_lastSlaveOkConn' : class 'boost::shared_ptr<T>' needs to have dll-interface to be used by clients of class 'mongo::DBClientReplicaSet'
with
[
T=mongo::DBClientConnection
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclient_rs.h(230) : warning C4251: 'mongo::DBClientReplicaSet::_lastReadPref' : class 'boost::shared_ptr<T>' needs to have dll-interface to be used by clients of class 'mongo::DBClientReplicaSet'
with
[
T=mongo::ReadPreferenceSetting
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclient_rs.h(238) : warning C4251: 'mongo::DBClientReplicaSet::_auths' : class 'std::map<_Kty,_Ty>' needs to have dll-interface to be used by clients of class 'mongo::DBClientReplicaSet'
with
[
_Kty=std::string,
_Ty=mongo::BSONObj
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclient_rs.h(254) : warning C4251: 'mongo::DBClientReplicaSet::_lazyState' : class 'mongo::DBClientReplicaSet::LazyState' needs to have dll-interface to be used by clients of class 'mongo::DBClientReplicaSet'
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclient_rs.h(245) : see declaration of 'mongo::DBClientReplicaSet::LazyState'
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/dbclient_rs.h(287) : warning C4251: 'mongo::TagSet::_tags' : struct 'mongo::BSONArray' needs to have dll-interface to be used by clients of class 'mongo::TagSet'
C:\Program Files\Windows Kits\8.0\include\um\mongo/bson/bsonobj.h(587) : see declaration of 'mongo::BSONArray'
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\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'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/gridfs.h(128) : warning C4251: 'mongo::GridFS::_chunksNS' : class 'std::basic_string<_Elem,_Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::GridFS'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/syncclusterconnection.h(141) : warning C4251: 'mongo::SyncClusterConnection::_address' : class 'std::basic_string<_Elem,_Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'mongo::SyncClusterConnection'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/syncclusterconnection.h(142) : warning C4251: 'mongo::SyncClusterConnection::_connAddresses' : class 'std::vector<_Ty>' needs to have dll-interface to be used by clients of class 'mongo::SyncClusterConnection'
with
[
_Ty=std::string
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/syncclusterconnection.h(143) : warning C4251: 'mongo::SyncClusterConnection::_conns' : class 'std::vector<_Ty>' needs to have dll-interface to be used by clients of class 'mongo::SyncClusterConnection'
with
[
_Ty=mongo::DBClientConnection *
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/syncclusterconnection.h(145) : warning C4251: 'mongo::SyncClusterConnection::_lastErrors' : class 'std::vector<_Ty>' needs to have dll-interface to be used by clients of class 'mongo::SyncClusterConnection'
with
[
_Ty=mongo::BSONObj
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/syncclusterconnection.h(148) : warning C4251: 'mongo::SyncClusterConnection::_customQueryHandler' : class 'boost::scoped_ptr<T>' needs to have dll-interface to be used by clients of class 'mongo::SyncClusterConnection'
with
[
T=mongo::SyncClusterConnection::QueryHandler
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/syncclusterconnection.h(150) : warning C4251: 'mongo::SyncClusterConnection::_mutex' : class 'mongo::mutex' needs to have dll-interface to be used by clients of class 'mongo::SyncClusterConnection'
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/concurrency/mutex.h(74) : see declaration of 'mongo::mutex'
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/syncclusterconnection.h(151) : warning C4251: 'mongo::SyncClusterConnection::_lockTypes' : class 'std::map<_Kty,_Ty>' needs to have dll-interface to be used by clients of class 'mongo::SyncClusterConnection'
with
[
_Kty=std::string,
_Ty=int
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/syncclusterconnection.h(205) : warning C4251: 'mongo::UpdateNotTheSame::_addrs' : class 'std::vector<_Ty>' needs to have dll-interface to be used by clients of class 'mongo::UpdateNotTheSame'
with
[
_Ty=std::string
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/client/syncclusterconnection.h(206) : warning C4251: 'mongo::UpdateNotTheSame::_lastErrors' : class 'std::vector<_Ty>' needs to have dll-interface to be used by clients of class 'mongo::UpdateNotTheSame'
with
[
_Ty=mongo::BSONObj
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/net/ssl_options.h(32) : warning C4251: 'mongo::SSLGlobalParams::sslMode' : class 'mongo::AtomicWord<_WordType>' needs to have dll-interface to be used by clients of struct 'mongo::SSLGlobalParams'
with
[
_WordType=int
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/net/ssl_options.h(34) : warning C4251: 'mongo::SSLGlobalParams::sslPEMKeyFile' : class 'std::basic_string<_Elem,_Traits,_Alloc>' needs to have dll-interface to be used by clients of struct 'mongo::SSLGlobalParams'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/net/ssl_options.h(35) : warning C4251: 'mongo::SSLGlobalParams::sslPEMKeyPassword' : class 'std::basic_string<_Elem,_Traits,_Alloc>' needs to have dll-interface to be used by clients of struct 'mongo::SSLGlobalParams'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/net/ssl_options.h(36) : warning C4251: 'mongo::SSLGlobalParams::sslClusterFile' : class 'std::basic_string<_Elem,_Traits,_Alloc>' needs to have dll-interface to be used by clients of struct 'mongo::SSLGlobalParams'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/net/ssl_options.h(37) : warning C4251: 'mongo::SSLGlobalParams::sslClusterPassword' : class 'std::basic_string<_Elem,_Traits,_Alloc>' needs to have dll-interface to be used by clients of struct 'mongo::SSLGlobalParams'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/net/ssl_options.h(38) : warning C4251: 'mongo::SSLGlobalParams::sslCAFile' : class 'std::basic_string<_Elem,_Traits,_Alloc>' needs to have dll-interface to be used by clients of struct 'mongo::SSLGlobalParams'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
C:\Program Files\Windows Kits\8.0\include\um\mongo/util/net/ssl_options.h(39) : warning C4251: 'mongo::SSLGlobalParams::sslCRLFile' : class 'std::basic_string<_Elem,_Traits,_Alloc>' needs to have dll-interface to be used by clients of struct 'mongo::SSLGlobalParams'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
..\untitled\main.cpp(4) : warning C4100: 'argv' : unreferenced formal parameter
..\untitled\main.cpp(4) : warning C4100: 'argc' : unreferenced formal parameter
echo 1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ "debug\\untitled.exe.embed.manifest">debug\untitled.exe_manifest.rc
if not exist debug\untitled.exe if exist debug\untitled.exe.embed.manifest del debug\untitled.exe.embed.manifest
if exist debug\untitled.exe.embed.manifest copy /Y debug\untitled.exe.embed.manifest debug\untitled.exe_manifest.bak
link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST /MANIFESTFILE:debug\untitled.exe.embed.manifest /OUT:debug\untitled.exe @C:\Users\freddy\AppData\Local\Temp\untitled.exe.1660.4087.jom
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall mongo::BSONObj::BSONObj(void)" (__imp_??0BSONObj@mongo@@QAE@XZ) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall mongo::BSONObj::~BSONObj(void)" (__imp_??1BSONObj@mongo@@QAE@XZ) referenced in function _main
debug\untitled.exe : fatal error LNK1120: 2 unresolved externals
jom: C:\qt-projects\build-untitled-Desktop_Qt_5_3_MSVC2012_OpenGL_32bit-Debug\Makefile.Debug [debug\untitled.exe] Error 1120
jom: C:\qt-projects\build-untitled-Desktop_Qt_5_3_MSVC2012_OpenGL_32bit-Debug\Makefile [debug] Error 2
17:33:17: The process "C:\Qt\Qt5.3.1\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project untitled (kit: Desktop Qt 5.3 MSVC2012 OpenGL 32bit)
When executing step 'Make'
17:33:17: Elapsed time: 00:04.
if i don't include this files, then the error is like my last message.... link error
regards
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/5f1e170f-0d89-45fc-83a7-a7a7e16dcae5%40googlegroups.com.
- The warnings you identified are related to the issue we previously discussed about the _CRT... macros. For the 26compat branch, you will likely need to define the appropriate preprocessor symbols in your application to suppress the warnings. We will be making a change to the legacy branch soon that obviates the need to define those symbols.
Please let us know if you have additional questions and we will be happy to help.