Discussion:
mongo-cxx-driver-26compat dll runtime error with string in debug
(too old to reply)
w***@qq.com
2015-02-05 11:23:47 UTC
Permalink
Hi Guys,
how r u? i need ur help. i m developing software unter win7 with vs2010. I
use mongo-cxx-driver-26compat dll.
The general issue is: Everything is working fine in release. but have
problem with string in debug. The details are:

1. Release: i use scons --prefix=.\mongo-client-install --64 --sharedclient
--use-system-boost --cpppath=C:\boost_1_55_0
--libpath="C:\boost_1_55_0\lib64-msvc-10.0" --full install-mongoclient to
build mongoclient.lib and mongoclient.dll. Then i use this release dll with
my RELEASE application. Every thing is fine. No problem in runtime.

2. Debug: i use scons --prefix=.\mongo-client-install --64 --sharedclient
--dbg=on --use-system-boost --cpppath=C:\boost_1_55_0
--libpath="C:\boost_1_55_0\lib64-msvc-10.0" --full install-mongoclient to
build mongoclient.lib and mongoclient.dll in debug. Then i use the debug
dll with my DEBUG application. It crashes every time after accessing the
return string from mongoclient.dll. Following error:

Windows has triggered a breakpoint in TestClient.exe.

This may be due to a corruption of the heap, which indicates a bug in
TestClient.exe or any of the DLLs it has loaded.

This may also be due to the user pressing F12 while TestClient.exe has
focus.

The output window may have more diagnostic information.

in the dbgheap.c:
extern "C" _CRTIMP int __cdecl _CrtIsValidHeapPointer(
const void * pUserData
)
{
if (!pUserData)
return FALSE;

if (!_CrtIsValidPointer(pHdr(pUserData),
sizeof(_CrtMemBlockHeader), FALSE))
return FALSE;

return HeapValidate( _crtheap, 0, pHdr(pUserData) );
}


I use Unicode Character Set for compiling. Do u have any idea, where could
be the problem? For the moment, i can continue my work with RELEASE
version. But soon or later i need to have my DEBUG version. Please give me
some advice.
Thank u very much!,
WeiJingSi
--
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 mongodb-***@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/ff2e8943-2230-47ec-a1dd-95b3664af39f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Andrew Morrow
2015-02-05 15:04:04 UTC
Permalink
Hi -

First, if you can upgrade to the new legacy-1.0.0 release, I strongly
encourage you to do so. It has dramatically improved Windows support,
including producing ABI tagged libraries, so you can actually have side by
side installs of the debug and non-debug libraries. It also offers autolib
support, so you will get the right library automatically at build time.

That said, typically this sort of crash occurs because of a mismatch
between the definition of std::string compiled into the mongoclient.dll and
the definition of std::string compiled into your application, resulting in
what amounts to good example of what happens when the one definition rule
is violated. You should verify that your application is linking with the
same runtime library as mongoclient.dll is linked to. For a --dbg=build of
the DLL, this should mean that your application is compiled and linked with
the /MDd switch. It is important, also, to ensure that any preprocessor
definitions are consistent.

I'm also not sure, exactly, what you mean by "using the unicode character
set" for compiling, but it makes me worry about the same issue. Can you
elaborate on what this means with respect to preprocessor definitions,
compile and link flags, and libraries?

Thanks,
Andrew
Post by w***@qq.com
Hi Guys,
how r u? i need ur help. i m developing software unter win7 with vs2010. I
use mongo-cxx-driver-26compat dll.
The general issue is: Everything is working fine in release. but have
1. Release: i use scons --prefix=.\mongo-client-install --64
--sharedclient --use-system-boost --cpppath=C:\boost_1_55_0
--libpath="C:\boost_1_55_0\lib64-msvc-10.0" --full install-mongoclient to
build mongoclient.lib and mongoclient.dll. Then i use this release dll with
my RELEASE application. Every thing is fine. No problem in runtime.
2. Debug: i use scons --prefix=.\mongo-client-install --64 --sharedclient
--dbg=on --use-system-boost --cpppath=C:\boost_1_55_0
--libpath="C:\boost_1_55_0\lib64-msvc-10.0" --full install-mongoclient to
build mongoclient.lib and mongoclient.dll in debug. Then i use the debug
dll with my DEBUG application. It crashes every time after accessing the
Windows has triggered a breakpoint in TestClient.exe.
This may be due to a corruption of the heap, which indicates a bug in
TestClient.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while TestClient.exe has
focus.
The output window may have more diagnostic information.
extern "C" _CRTIMP int __cdecl _CrtIsValidHeapPointer(
const void * pUserData
)
{
if (!pUserData)
return FALSE;
if (!_CrtIsValidPointer(pHdr(pUserData),
sizeof(_CrtMemBlockHeader), FALSE))
return FALSE;
return HeapValidate( _crtheap, 0, pHdr(pUserData) );
}
I use Unicode Character Set for compiling. Do u have any idea, where could
be the problem? For the moment, i can continue my work with RELEASE
version. But soon or later i need to have my DEBUG version. Please give me
some advice.
Thank u very much!,
WeiJingSi
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
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
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/ff2e8943-2230-47ec-a1dd-95b3664af39f%40googlegroups.com
<https://groups.google.com/d/msgid/mongodb-user/ff2e8943-2230-47ec-a1dd-95b3664af39f%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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 mongodb-***@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/CAHX05qGBWfxjGRTAFdw9Kn%3DSyOkQ-Q8meUjo4W5YpYvuCJRo2A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
w***@qq.com
2015-02-05 17:57:13 UTC
Permalink
Hi Andrew,
thank u very much for the quick answer. i tried legacy version just. i can
not go on even in the compile step. here are my steps:

1. scons --prefix=C:\MongoDB\mongo-cxx-driver-legacy\mongo-client-install
--64 --cpppath=C:\boost_1_55_0 --libpath="C:\boost_1_55_0\lib64-msvc-10.0"
install --dynamic-windows --sharedclient --dbg=on i could buid
the mongoclient-gd.lib and mongoclient-gd.dll.

2. Try to compile. first i got
1>C:\MongoDB\mongo-cxx-driver-legacy\src\mongo/bson/bson.h(63): fatal error
C1189: #error : "You must include the windows and windows sockets headers
before bson.h"

then, after adding

#define _WINSOCK2API_
#include <windows.h>
#include <Ws2def.h>

i get:

1>Build started 05.02.2015 20:51:36.
1>InitializeBuildStatus:
1> Touching "x64\Debug\PassScheduleDll.unsuccessfulbuild".
1>ClCompile:
1> subSetupFunctions.cpp
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(91):
warning C4005: 'AF_IPX' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(460) : see previous definition of
'AF_IPX'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(131):
warning C4005: 'AF_MAX' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(479) : see previous definition of
'AF_MAX'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(168):
warning C4005: 'SO_DONTLINGER' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(402) : see previous definition of
'SO_DONTLINGER'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(212): error
C2011: 'sockaddr' : 'struct' type redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(485) : see declaration of 'sockaddr'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(390): error
C2059: syntax error : 'constant'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(390): error
C3805: 'constant': unexpected token, expected either '}' or a ','
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(524):
warning C4005: 'IN_CLASSA' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(287) : see previous definition of
'IN_CLASSA'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(530):
warning C4005: 'IN_CLASSB' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(293) : see previous definition of
'IN_CLASSB'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(536):
warning C4005: 'IN_CLASSC' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(299) : see previous definition of
'IN_CLASSC'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(547):
warning C4005: 'INADDR_ANY' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(304) : see previous definition of
'INADDR_ANY'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(549):
warning C4005: 'INADDR_BROADCAST' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(306) : see previous definition of
'INADDR_BROADCAST'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(583): error
C2011: 'sockaddr_in' : 'struct' type redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(75):
error C2079: 'sockaddr_gen::Address' uses undefined struct 'sockaddr'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(76):
error C2079: 'sockaddr_gen::AddressIn' uses undefined struct 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(119):
warning C4005: 'IP_TOS' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(352) : see previous definition of
'IP_TOS'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(120):
warning C4005: 'IP_TTL' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(351) : see previous definition of
'IP_TTL'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(121):
warning C4005: 'IP_MULTICAST_IF' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(346) : see previous definition of
'IP_MULTICAST_IF'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(122):
warning C4005: 'IP_MULTICAST_TTL' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(347) : see previous definition of
'IP_MULTICAST_TTL'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(123):
warning C4005: 'IP_MULTICAST_LOOP' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(348) : see previous definition of
'IP_MULTICAST_LOOP'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(124):
warning C4005: 'IP_ADD_MEMBERSHIP' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(349) : see previous definition of
'IP_ADD_MEMBERSHIP'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(125):
warning C4005: 'IP_DROP_MEMBERSHIP' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(350) : see previous definition of
'IP_DROP_MEMBERSHIP'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(126):
warning C4005: 'IP_DONTFRAGMENT' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(353) : see previous definition of
'IP_DONTFRAGMENT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(193):
error C2079: '_SOCKADDR_INET::Ipv4' uses undefined struct 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(700):
error C2011: 'ip_mreq' : 'struct' type redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(363) : see declaration of 'ip_mreq'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(94):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(94):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(95):
error C2146: syntax error : missing ';' before identifier 'getaddrinfo'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(100):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(105):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(105):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(105):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(106):
error C2146: syntax error : missing ';' before identifier 'GetAddrInfoW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(106):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(111):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(157):
error C2061: syntax error : identifier 'LPWSAOVERLAPPED'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(162):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(162):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(162):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(163):
error C2146: syntax error : missing ';' before identifier 'GetAddrInfoExA'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(163):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(174):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(178):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(178):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(178):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(179):
error C2146: syntax error : missing ';' before identifier 'GetAddrInfoExW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(179):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(190):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(243):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(243):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(243):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(244):
error C2146: syntax error : missing ';' before identifier 'SetAddrInfoExA'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(244):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(257):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(261):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(261):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(261):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(262):
error C2146: syntax error : missing ';' before identifier 'SetAddrInfoExW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(262):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(275):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(329):
error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(329):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(329):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(330):
error C2146: syntax error : missing ';' before identifier 'freeaddrinfo'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(330):
error C2182: 'WSAAPI' : illegal use of type 'void'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(330):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(332):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(337):
error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(337):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(337):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(338):
error C2146: syntax error : missing ';' before identifier 'FreeAddrInfoW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(338):
error C2182: 'WSAAPI' : illegal use of type 'void'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(338):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(340):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(377):
error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(377):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(377):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(378):
error C2146: syntax error : missing ';' before identifier 'FreeAddrInfoEx'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(378):
error C2182: 'WSAAPI' : illegal use of type 'void'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(378):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(380):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(384):
error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(384):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(384):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(385):
error C2146: syntax error : missing ';' before identifier 'FreeAddrInfoExW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(385):
error C2182: 'WSAAPI' : illegal use of type 'void'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(385):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(387):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(422):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(422):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(422):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(423):
error C2146: syntax error : missing ';' before identifier 'getnameinfo'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(423):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(431):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(436):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(436):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(436):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(437):
error C2146: syntax error : missing ';' before identifier 'GetNameInfoW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(437):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(445):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(494):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(494):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(494):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(495):
error C2146: syntax error : missing ';' before identifier 'inet_pton'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(495):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(499):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(503):
error C2146: syntax error : missing ';' before identifier 'InetPtonW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(503):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(507):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(511):
error C2146: syntax error : missing ';' before identifier 'inet_ntop'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(511):
error C2373: 'WSAAPI' : redefinition; different type modifiers
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(516):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(520):
error C2146: syntax error : missing ';' before identifier 'InetNtopW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(520):
error C2373: 'WSAAPI' : redefinition; different type modifiers
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(525):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(684):
error C3861: 'WSAIoctl': identifier not found
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(724):
error C3861: 'WSAIoctl': identifier not found
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(781):
error C3861: 'WSAIoctl': identifier not found
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(823):
error C3861: 'WSAIoctl': identifier not found
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(857):
error C3861: 'WSAIoctl': identifier not found
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(866):
error C2061: syntax error : identifier 'LPWSAOVERLAPPED'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(874):
error C2065: 'lpOverlapped' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(874):
error C2065: 'lpCompletionRoutine' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(872):
error C3861: 'WSAIoctl': identifier not found
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(217):
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(217):
error C2227: left of '->sin_family' must point to
class/struct/union/generic type
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(218):
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(218):
error C2227: left of '->sin_port' must point to class/struct/union/generic
type
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(219):
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(219):
error C2227: left of '->sin_addr' must point to class/struct/union/generic
type
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(219):
error C2228: left of '.S_un' must have class/struct/union
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(219):
error C2228: left of '.S_addr' must have class/struct/union
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(287):
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(387):
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(427):
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(427):
error C2227: left of '->sin_addr' must point to class/struct/union/generic
type
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(427):
error C2228: left of '.S_un' must have class/struct/union
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(427):
error C2228: left of '.S_addr' must have class/struct/union
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(438):
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(640):
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(654):
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(743):
error C2027: use of undefined type 'sockaddr'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(485) : see declaration of 'sockaddr'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(743):
error C2227: left of '->sa_family' must point to class/struct/union/generic
type
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(767):
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(767):
error C2227: left of '->sin_port' must point to class/struct/union/generic
type
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(803):
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(803):
error C2227: left of '->sin_addr' must point to class/struct/union/generic
type
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(803):
fatal error C1003: error count exceeds 100; stopping compilation
1> commonDataManager.cpp
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(91):
warning C4005: 'AF_IPX' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(460) : see previous definition of
'AF_IPX'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(131):
warning C4005: 'AF_MAX' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(479) : see previous definition of
'AF_MAX'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(168):
warning C4005: 'SO_DONTLINGER' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(402) : see previous definition of
'SO_DONTLINGER'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(212): error
C2011: 'sockaddr' : 'struct' type redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(485) : see declaration of 'sockaddr'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(390): error
C2059: syntax error : 'constant'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(390): error
C3805: 'constant': unexpected token, expected either '}' or a ','
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(524):
warning C4005: 'IN_CLASSA' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(287) : see previous definition of
'IN_CLASSA'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(530):
warning C4005: 'IN_CLASSB' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(293) : see previous definition of
'IN_CLASSB'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(536):
warning C4005: 'IN_CLASSC' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(299) : see previous definition of
'IN_CLASSC'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(547):
warning C4005: 'INADDR_ANY' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(304) : see previous definition of
'INADDR_ANY'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(549):
warning C4005: 'INADDR_BROADCAST' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(306) : see previous definition of
'INADDR_BROADCAST'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\Ws2def.h(583): error
C2011: 'sockaddr_in' : 'struct' type redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(75):
error C2079: 'sockaddr_gen::Address' uses undefined struct 'sockaddr'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(76):
error C2079: 'sockaddr_gen::AddressIn' uses undefined struct 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(119):
warning C4005: 'IP_TOS' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(352) : see previous definition of
'IP_TOS'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(120):
warning C4005: 'IP_TTL' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(351) : see previous definition of
'IP_TTL'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(121):
warning C4005: 'IP_MULTICAST_IF' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(346) : see previous definition of
'IP_MULTICAST_IF'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(122):
warning C4005: 'IP_MULTICAST_TTL' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(347) : see previous definition of
'IP_MULTICAST_TTL'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(123):
warning C4005: 'IP_MULTICAST_LOOP' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(348) : see previous definition of
'IP_MULTICAST_LOOP'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(124):
warning C4005: 'IP_ADD_MEMBERSHIP' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(349) : see previous definition of
'IP_ADD_MEMBERSHIP'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(125):
warning C4005: 'IP_DROP_MEMBERSHIP' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(350) : see previous definition of
'IP_DROP_MEMBERSHIP'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(126):
warning C4005: 'IP_DONTFRAGMENT' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(353) : see previous definition of
'IP_DONTFRAGMENT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(193):
error C2079: '_SOCKADDR_INET::Ipv4' uses undefined struct 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2ipdef.h(700):
error C2011: 'ip_mreq' : 'struct' type redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(363) : see declaration of 'ip_mreq'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(94):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(94):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(95):
error C2146: syntax error : missing ';' before identifier 'getaddrinfo'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(100):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(105):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(105):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(105):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(106):
error C2146: syntax error : missing ';' before identifier 'GetAddrInfoW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(106):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(111):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(157):
error C2061: syntax error : identifier 'LPWSAOVERLAPPED'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(162):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(162):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(162):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(163):
error C2146: syntax error : missing ';' before identifier 'GetAddrInfoExA'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(163):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(174):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(178):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(178):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(178):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(179):
error C2146: syntax error : missing ';' before identifier 'GetAddrInfoExW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(179):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(190):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(243):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(243):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(243):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(244):
error C2146: syntax error : missing ';' before identifier 'SetAddrInfoExA'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(244):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(257):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(261):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(261):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(261):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(262):
error C2146: syntax error : missing ';' before identifier 'SetAddrInfoExW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(262):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(275):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(329):
error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(329):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(329):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(330):
error C2146: syntax error : missing ';' before identifier 'freeaddrinfo'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(330):
error C2182: 'WSAAPI' : illegal use of type 'void'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(330):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(332):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(337):
error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(337):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(337):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(338):
error C2146: syntax error : missing ';' before identifier 'FreeAddrInfoW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(338):
error C2182: 'WSAAPI' : illegal use of type 'void'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(338):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(340):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(377):
error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(377):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(377):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(378):
error C2146: syntax error : missing ';' before identifier 'FreeAddrInfoEx'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(378):
error C2182: 'WSAAPI' : illegal use of type 'void'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(378):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(380):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(384):
error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(384):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(384):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(385):
error C2146: syntax error : missing ';' before identifier 'FreeAddrInfoExW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(385):
error C2182: 'WSAAPI' : illegal use of type 'void'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(385):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(387):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(422):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(422):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(422):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(423):
error C2146: syntax error : missing ';' before identifier 'getnameinfo'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(423):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(431):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(436):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(436):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(436):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(437):
error C2146: syntax error : missing ';' before identifier 'GetNameInfoW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(437):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(445):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(494):
error C2146: syntax error : missing ';' before identifier 'INT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(494):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(494):
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(495):
error C2146: syntax error : missing ';' before identifier 'inet_pton'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(495):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(499):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(503):
error C2146: syntax error : missing ';' before identifier 'InetPtonW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(503):
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(507):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(511):
error C2146: syntax error : missing ';' before identifier 'inet_ntop'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(511):
error C2373: 'WSAAPI' : redefinition; different type modifiers
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(516):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(520):
error C2146: syntax error : missing ';' before identifier 'InetNtopW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(520):
error C2373: 'WSAAPI' : redefinition; different type modifiers
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(525):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(684):
error C3861: 'WSAIoctl': identifier not found
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(724):
error C3861: 'WSAIoctl': identifier not found
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(781):
error C3861: 'WSAIoctl': identifier not found
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(823):
error C3861: 'WSAIoctl': identifier not found
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(857):
error C3861: 'WSAIoctl': identifier not found
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(866):
error C2061: syntax error : identifier 'LPWSAOVERLAPPED'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(874):
error C2065: 'lpOverlapped' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(874):
error C2065: 'lpCompletionRoutine' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\ws2tcpip.h(872):
error C3861: 'WSAIoctl': identifier not found
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(217):
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(217):
error C2227: left of '->sin_family' must point to
class/struct/union/generic type
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(218):
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(218):
error C2227: left of '->sin_port' must point to class/struct/union/generic
type
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(219):
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(219):
error C2227: left of '->sin_addr' must point to class/struct/union/generic
type
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(219):
error C2228: left of '.S_un' must have class/struct/union
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(219):
error C2228: left of '.S_addr' must have class/struct/union
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(287):
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(387):
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(427):
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(427):
error C2227: left of '->sin_addr' must point to class/struct/union/generic
type
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(427):
error C2228: left of '.S_un' must have class/struct/union
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(427):
error C2228: left of '.S_addr' must have class/struct/union
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(438):
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(640):
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(654):
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(743):
error C2027: use of undefined type 'sockaddr'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(485) : see declaration of 'sockaddr'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(743):
error C2227: left of '->sa_family' must point to class/struct/union/generic
type
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(767):
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(767):
error C2227: left of '->sin_port' must point to class/struct/union/generic
type
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(803):
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(803):
error C2227: left of '->sin_addr' must point to class/struct/union/generic
type
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\wspiapi.h(803):
fatal error C1003: error count exceeds 100; stopping compilation
1> PassScheduleDll.cpp
1>C:\MongoDB\mongo-cxx-driver-legacy\src\mongo/bson/bson.h(63): fatal error
C1189: #error : "You must include the windows and windows sockets headers
before bson.h"
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:03.89
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


before i continue to fight through them all. could u give me some more
configuration hints? It's far aways from just adding 2 header files in the
solution.

btw. acording to the "using the unicode character set", i was just
thinking, maybe the driver was build with different character set. just a
guess.
thank u very much,
WeiJingSi
--
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 mongodb-***@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/054bc1a6-df83-44cd-a37c-112a7c9ea35f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Andrew Morrow
2015-02-05 18:11:31 UTC
Permalink
I think perhaps the way you are setting up the winsock headers isn't quite
right.

Have a look at our examples (see
https://github.com/mongodb/mongo-cxx-driver/blob/legacy/src/mongo/client/examples/arrayExample.cpp),
where we set things up like:

#if defined(_WIN32)
#include <winsock2.h>
#include <windows.h>
#endif

#include "mongo/client/dbclient.h"

Can you try that and see if it is working better?
Post by w***@qq.com
Hi Andrew,
thank u very much for the quick answer. i tried legacy version just. i can
1. scons --prefix=C:\MongoDB\mongo-cxx-driver-legacy\mongo-client-install
--64 --cpppath=C:\boost_1_55_0 --libpath="C:\boost_1_55_0\lib64-msvc-10.0"
install --dynamic-windows --sharedclient --dbg=on i could buid
the mongoclient-gd.lib and mongoclient-gd.dll.
2. Try to compile. first i got
1>C:\MongoDB\mongo-cxx-driver-legacy\src\mongo/bson/bson.h(63): fatal error
C1189: #error : "You must include the windows and windows sockets headers
before bson.h"
then, after adding
#define _WINSOCK2API_
#include <windows.h>
#include <Ws2def.h>
1>Build started 05.02.2015 20:51:36.
1> Touching "x64\Debug\PassScheduleDll.unsuccessfulbuild".
1> subSetupFunctions.cpp
warning C4005: 'AF_IPX' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(460) : see previous definition of
'AF_IPX'
warning C4005: 'AF_MAX' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(479) : see previous definition of
'AF_MAX'
warning C4005: 'SO_DONTLINGER' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(402) : see previous definition of
'SO_DONTLINGER'
error C2011: 'sockaddr' : 'struct' type redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(485) : see declaration of 'sockaddr'
error C2059: syntax error : 'constant'
error C3805: 'constant': unexpected token, expected either '}' or a ','
warning C4005: 'IN_CLASSA' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(287) : see previous definition of
'IN_CLASSA'
warning C4005: 'IN_CLASSB' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(293) : see previous definition of
'IN_CLASSB'
warning C4005: 'IN_CLASSC' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(299) : see previous definition of
'IN_CLASSC'
warning C4005: 'INADDR_ANY' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(304) : see previous definition of
'INADDR_ANY'
warning C4005: 'INADDR_BROADCAST' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(306) : see previous definition of
'INADDR_BROADCAST'
error C2011: 'sockaddr_in' : 'struct' type redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
error C2079: 'sockaddr_gen::Address' uses undefined struct 'sockaddr'
error C2079: 'sockaddr_gen::AddressIn' uses undefined struct 'sockaddr_in'
warning C4005: 'IP_TOS' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(352) : see previous definition of
'IP_TOS'
warning C4005: 'IP_TTL' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(351) : see previous definition of
'IP_TTL'
warning C4005: 'IP_MULTICAST_IF' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(346) : see previous definition of
'IP_MULTICAST_IF'
warning C4005: 'IP_MULTICAST_TTL' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(347) : see previous definition of
'IP_MULTICAST_TTL'
warning C4005: 'IP_MULTICAST_LOOP' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(348) : see previous definition of
'IP_MULTICAST_LOOP'
warning C4005: 'IP_ADD_MEMBERSHIP' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(349) : see previous definition of
'IP_ADD_MEMBERSHIP'
warning C4005: 'IP_DROP_MEMBERSHIP' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(350) : see previous definition of
'IP_DROP_MEMBERSHIP'
warning C4005: 'IP_DONTFRAGMENT' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(353) : see previous definition of
'IP_DONTFRAGMENT'
error C2079: '_SOCKADDR_INET::Ipv4' uses undefined struct 'sockaddr_in'
error C2011: 'ip_mreq' : 'struct' type redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(363) : see declaration of 'ip_mreq'
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'getaddrinfo'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'GetAddrInfoW'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2061: syntax error : identifier 'LPWSAOVERLAPPED'
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'GetAddrInfoExA'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'GetAddrInfoExW'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'SetAddrInfoExA'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'SetAddrInfoExW'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2144: syntax error : 'void' should be preceded by ';'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'freeaddrinfo'
error C2182: 'WSAAPI' : illegal use of type 'void'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2144: syntax error : 'void' should be preceded by ';'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'FreeAddrInfoW'
error C2182: 'WSAAPI' : illegal use of type 'void'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2144: syntax error : 'void' should be preceded by ';'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'FreeAddrInfoEx'
error C2182: 'WSAAPI' : illegal use of type 'void'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2144: syntax error : 'void' should be preceded by ';'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'FreeAddrInfoExW'
error C2182: 'WSAAPI' : illegal use of type 'void'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'getnameinfo'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'GetNameInfoW'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'inet_pton'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'InetPtonW'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'inet_ntop'
error C2373: 'WSAAPI' : redefinition; different type modifiers
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'InetNtopW'
error C2373: 'WSAAPI' : redefinition; different type modifiers
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C3861: 'WSAIoctl': identifier not found
error C3861: 'WSAIoctl': identifier not found
error C3861: 'WSAIoctl': identifier not found
error C3861: 'WSAIoctl': identifier not found
error C3861: 'WSAIoctl': identifier not found
error C2061: syntax error : identifier 'LPWSAOVERLAPPED'
error C2065: 'lpOverlapped' : undeclared identifier
error C2065: 'lpCompletionRoutine' : undeclared identifier
error C3861: 'WSAIoctl': identifier not found
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
error C2227: left of '->sin_family' must point to
class/struct/union/generic type
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
error C2227: left of '->sin_port' must point to class/struct/union/generic
type
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
error C2227: left of '->sin_addr' must point to class/struct/union/generic
type
error C2228: left of '.S_un' must have class/struct/union
error C2228: left of '.S_addr' must have class/struct/union
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
error C2227: left of '->sin_addr' must point to class/struct/union/generic
type
error C2228: left of '.S_un' must have class/struct/union
error C2228: left of '.S_addr' must have class/struct/union
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
error C2027: use of undefined type 'sockaddr'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(485) : see declaration of 'sockaddr'
error C2227: left of '->sa_family' must point to class/struct/union/generic
type
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
error C2227: left of '->sin_port' must point to class/struct/union/generic
type
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
error C2227: left of '->sin_addr' must point to class/struct/union/generic
type
fatal error C1003: error count exceeds 100; stopping compilation
1> commonDataManager.cpp
warning C4005: 'AF_IPX' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(460) : see previous definition of
'AF_IPX'
warning C4005: 'AF_MAX' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(479) : see previous definition of
'AF_MAX'
warning C4005: 'SO_DONTLINGER' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(402) : see previous definition of
'SO_DONTLINGER'
error C2011: 'sockaddr' : 'struct' type redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(485) : see declaration of 'sockaddr'
error C2059: syntax error : 'constant'
error C3805: 'constant': unexpected token, expected either '}' or a ','
warning C4005: 'IN_CLASSA' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(287) : see previous definition of
'IN_CLASSA'
warning C4005: 'IN_CLASSB' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(293) : see previous definition of
'IN_CLASSB'
warning C4005: 'IN_CLASSC' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(299) : see previous definition of
'IN_CLASSC'
warning C4005: 'INADDR_ANY' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(304) : see previous definition of
'INADDR_ANY'
warning C4005: 'INADDR_BROADCAST' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(306) : see previous definition of
'INADDR_BROADCAST'
error C2011: 'sockaddr_in' : 'struct' type redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
error C2079: 'sockaddr_gen::Address' uses undefined struct 'sockaddr'
error C2079: 'sockaddr_gen::AddressIn' uses undefined struct 'sockaddr_in'
warning C4005: 'IP_TOS' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(352) : see previous definition of
'IP_TOS'
warning C4005: 'IP_TTL' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(351) : see previous definition of
'IP_TTL'
warning C4005: 'IP_MULTICAST_IF' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(346) : see previous definition of
'IP_MULTICAST_IF'
warning C4005: 'IP_MULTICAST_TTL' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(347) : see previous definition of
'IP_MULTICAST_TTL'
warning C4005: 'IP_MULTICAST_LOOP' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(348) : see previous definition of
'IP_MULTICAST_LOOP'
warning C4005: 'IP_ADD_MEMBERSHIP' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(349) : see previous definition of
'IP_ADD_MEMBERSHIP'
warning C4005: 'IP_DROP_MEMBERSHIP' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(350) : see previous definition of
'IP_DROP_MEMBERSHIP'
warning C4005: 'IP_DONTFRAGMENT' : macro redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(353) : see previous definition of
'IP_DONTFRAGMENT'
error C2079: '_SOCKADDR_INET::Ipv4' uses undefined struct 'sockaddr_in'
error C2011: 'ip_mreq' : 'struct' type redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(363) : see declaration of 'ip_mreq'
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'getaddrinfo'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'GetAddrInfoW'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2061: syntax error : identifier 'LPWSAOVERLAPPED'
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'GetAddrInfoExA'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'GetAddrInfoExW'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'SetAddrInfoExA'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'SetAddrInfoExW'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2144: syntax error : 'void' should be preceded by ';'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'freeaddrinfo'
error C2182: 'WSAAPI' : illegal use of type 'void'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2144: syntax error : 'void' should be preceded by ';'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'FreeAddrInfoW'
error C2182: 'WSAAPI' : illegal use of type 'void'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2144: syntax error : 'void' should be preceded by ';'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'FreeAddrInfoEx'
error C2182: 'WSAAPI' : illegal use of type 'void'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2144: syntax error : 'void' should be preceded by ';'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'FreeAddrInfoExW'
error C2182: 'WSAAPI' : illegal use of type 'void'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'getnameinfo'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'GetNameInfoW'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'INT'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2086: 'int WINSOCK_API_LINKAGE' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(93) : see declaration of
'WINSOCK_API_LINKAGE'
error C2146: syntax error : missing ';' before identifier 'inet_pton'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'InetPtonW'
error C2086: 'INT WSAAPI' : redefinition
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'inet_ntop'
error C2373: 'WSAAPI' : redefinition; different type modifiers
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier 'InetNtopW'
error C2373: 'WSAAPI' : redefinition; different type modifiers
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\ws2tcpip.h(95) : see declaration of 'WSAAPI'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C3861: 'WSAIoctl': identifier not found
error C3861: 'WSAIoctl': identifier not found
error C3861: 'WSAIoctl': identifier not found
error C3861: 'WSAIoctl': identifier not found
error C3861: 'WSAIoctl': identifier not found
error C2061: syntax error : identifier 'LPWSAOVERLAPPED'
error C2065: 'lpOverlapped' : undeclared identifier
error C2065: 'lpCompletionRoutine' : undeclared identifier
error C3861: 'WSAIoctl': identifier not found
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
error C2227: left of '->sin_family' must point to
class/struct/union/generic type
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
error C2227: left of '->sin_port' must point to class/struct/union/generic
type
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
error C2227: left of '->sin_addr' must point to class/struct/union/generic
type
error C2228: left of '.S_un' must have class/struct/union
error C2228: left of '.S_addr' must have class/struct/union
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
error C2227: left of '->sin_addr' must point to class/struct/union/generic
type
error C2228: left of '.S_un' must have class/struct/union
error C2228: left of '.S_addr' must have class/struct/union
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
error C2065: 'WSA_NOT_ENOUGH_MEMORY' : undeclared identifier
error C2027: use of undefined type 'sockaddr'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(485) : see declaration of 'sockaddr'
error C2227: left of '->sa_family' must point to class/struct/union/generic
type
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
error C2227: left of '->sin_port' must point to class/struct/union/generic
type
error C2027: use of undefined type 'sockaddr_in'
1> C:\Program Files\Microsoft
SDKs\Windows\v7.1\include\winsock.h(312) : see declaration of 'sockaddr_in'
error C2227: left of '->sin_addr' must point to class/struct/union/generic
type
fatal error C1003: error count exceeds 100; stopping compilation
1> PassScheduleDll.cpp
1>C:\MongoDB\mongo-cxx-driver-legacy\src\mongo/bson/bson.h(63): fatal
error C1189: #error : "You must include the windows and windows sockets
headers before bson.h"
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:03.89
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
before i continue to fight through them all. could u give me some more
configuration hints? It's far aways from just adding 2 header files in the
solution.
btw. acording to the "using the unicode character set", i was just
thinking, maybe the driver was build with different character set. just a
guess.
thank u very much,
WeiJingSi
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
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
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/054bc1a6-df83-44cd-a37c-112a7c9ea35f%40googlegroups.com
<https://groups.google.com/d/msgid/mongodb-user/054bc1a6-df83-44cd-a37c-112a7c9ea35f%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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 mongodb-***@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/CAHX05qGynwQGXGQ9iF9UZc3CBfy2pQNH5E92t20%3DaSEfRcw4Mg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
w***@qq.com
2015-02-05 20:06:16 UTC
Permalink
#if defined(_WIN32)
#include <winsock2.h>
#include <windows.h>
#endif
//#include <mongo/bson/bson.h>
#include <mongo/client/dbclient.h>

but i always
get: 1>C:\MongoDB\mongo-cxx-driver-legacy\src\mongo/bson/bson.h(63): fatal
error C1189: #error : "You must include the windows and windows sockets
headers before bson.h"
i don't understand, why it jumps there.

Thank u very much,
WeiJingSi
--
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 mongodb-***@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/c7c94ee7-52a3-4f2f-b166-0c23962dd56c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
w***@qq.com
2015-02-05 20:12:07 UTC
Permalink
btw. i forgot to tell, that in order to minimize all linked not needed
libs, i created my project as a empty project without any unnecessary
template libs...
--
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 mongodb-***@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/217d7e61-a15b-483a-8501-ad427780f454%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Andrew Morrow
2015-02-06 02:41:53 UTC
Permalink
Can you please try the following:

- Please remove all of the contents of the directory you have specified
with --prefix, if any
- Clean all build artifacts by removing the build directory
- Rebuild, and add the target check-install to your SCons invocation
- Reply here with your complete SCons invocation, including the above target
- Please provide a complete compilable, minimal example program, so that we
can be sure we are discussing the same code.
- Please provide the complete compiler invocation that you are using to
compile that example program, with all flags, include paths, etc.

With the above, we should be able to figure out what is going wrong.

Thanks,
Andrew
Post by Andrew Morrow
#if defined(_WIN32)
#include <winsock2.h>
#include <windows.h>
#endif
//#include <mongo/bson/bson.h>
#include <mongo/client/dbclient.h>
but i always
get: 1>C:\MongoDB\mongo-cxx-driver-legacy\src\mongo/bson/bson.h(63): fatal
error C1189: #error : "You must include the windows and windows sockets
headers before bson.h"
i don't understand, why it jumps there.
Thank u very much,
WeiJingSi
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
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
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/c7c94ee7-52a3-4f2f-b166-0c23962dd56c%40googlegroups.com
<https://groups.google.com/d/msgid/mongodb-user/c7c94ee7-52a3-4f2f-b166-0c23962dd56c%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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 mongodb-***@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/CAHX05qEKNp-MjMygBRWSc0eaYTZhVFfBHmpQa%2BxjLgd-Fn47Ew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
w***@qq.com
2015-02-06 18:24:21 UTC
Permalink
Post by w***@qq.com
Hi Andrew,
thank you very much. it works fine now also with debug dll in runtime! it
was my fault, my project duplicated the include.
btw. I did need to adapt some functions from 26compat to legacy. i'd like
to ask about the ensureIndex function. right now i just replaced with
createIndex. but in my code, i call it many time. i m not quit sure about
the performance. could you give some advice how use the createIndex
properly? Is there anything like: getIndex first, check whether such index
exists, then decide createIndex?
thank you very much,
WeiJingSi
--
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 mongodb-***@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/a9c00f2d-dcdf-4f6e-b1ae-292de0b910db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
w***@qq.com
2015-02-06 21:22:37 UTC
Permalink
btw. i used
con.query(collName, BSON("a" << a << "b" << b << "c" <<
mongo::BSONObjBuilder().appendNumber("$lt", c).obj() << "d" <<
mongo::BSONObjBuilder().appendNumber("$gt", d).obj() ), 1);
in 26compat. it works fine. but i can not get any value in the new legacy
version now. which new grammar should i use then?
thank u very much
--
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 mongodb-***@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/442274e5-2eba-4b18-9761-341979c4be8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tyler Brock
2015-02-07 06:29:32 UTC
Permalink
Hey there,

Regarding createIndex as a replacement for ensureIndex you can use either
mongo::DBClientWithCommands::getIndexNames or
mongo::DBClientWithCommands::enumerateIndexes to get a list of a
namespace's current indexes. The former returns a list of strings. The
latter returns a cursor. I'd suggest checking to see if the index exists
and then only creating one if not.

virtual std::list< std::string > getIndexNames (const std::string &ns,
int options=0)
virtual std::auto_ptr< DBClientCursor > enumerateIndexes (const
std::string &ns, int options=0, int batchSize=0)

Regarding your query, I'm not sure what the problem would be without seeing
the data you are attempting to match but mixing the BSON macro with a
builder is not idiomatic or recommended. You might want to take a look at
the BSON helper functions wiki page:

https://github.com/mongodb/mongo-cxx-driver/wiki/BSON%20Helper%20Functions

The query you were trying to create can more succinctly be expressed with
the following code:

BSON("a" << a << "b" << b << "c" << LT << c << "d" << GT << d)

Want to give that a try?
​
--
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 mongodb-***@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/CAGFxsbKDp7kcErfQfE0sniAPNdk7%2Bo5zP5kL4XvWWZ%3DtxsxqUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
w***@qq.com
2015-02-07 17:24:59 UTC
Permalink
Hi Tyler,
thank you very much. it was my mistake again. there was a little bug which
just appears in debug version. the query was ok, but you are right, i will
try to make it more clean.
thank you also for the information about the createIndex, i will do thant.
best 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 mongodb-***@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/fd9af530-e5dc-47f3-8a7c-f3435fed6ae2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
w***@qq.com
2015-02-07 20:28:31 UTC
Permalink
i optimized the handling of createIndex, in the way that just made my own
ensureIndex for legacy. just curious, why do u remove this nice function in
the legacy. it's actually not bad in the 26compat...
--
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 mongodb-***@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/91e43937-f074-40e9-887e-e69803523eba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tyler Brock
2015-02-09 16:31:54 UTC
Permalink
Good question. In general we felt it wasn't great to have no idea how long
the function call would take. The problem with ensureIndex was that,
depending on various factors the call could be:

- very cheap (by looking in a cache and finding it)
- somewhat cheap (by checking on the server if the index exists already
and finding it)
- really expensive (by creating a new index)

So while it was easy to reason about and use it was not predictable. It's
better to be explicit when you are taking an action that could potentially
hold the write lock for a long time.

-Tyler
Post by w***@qq.com
i optimized the handling of createIndex, in the way that just made my own
ensureIndex for legacy. just curious, why do u remove this nice function in
the legacy. it's actually not bad in the 26compat...
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
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
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/91e43937-f074-40e9-887e-e69803523eba%40googlegroups.com
<https://groups.google.com/d/msgid/mongodb-user/91e43937-f074-40e9-887e-e69803523eba%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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 mongodb-***@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/CAGFxsb%2B493tEXtprBTL%3DnZBJxJrvSNgSyZfPtTyTLMB-K3PfOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...