Can someone please help me find the cause of these errors?

Hi Everyone,

I'm having real problems compiling some source for eVC4++. The errors I am getting are below:
It all seems to be centred around winsock. If I move the afsock.h reference to before my other includes then I get lots of errors like
C2011: 'fd_set' : 'struct' type redefinition
warning C4005: 'FD_CLR' : macro redefinition
which I understand are due to the fact that windows.h is being included in another header file as well as winsock2.h.

If anybody can help me with these I would be eternally grateful.

Cheers,

Erik

These are the errors I get
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(137) : error C2146: syntax error : missing ';' before identifier 'FromHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(191) : error C2146: syntax error : missing ';' before identifier 'LookupHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(191) : error C2086: 'WINSOCKAPI' : redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2146: syntax error : missing ';' before identifier 'AttachHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2182: ' WINSOCKAPI 2' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2146: syntax error : missing ';' before identifier 'DetachHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2182: ' WINSOCKAPI 3' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2146: syntax error : missing ';' before identifier 'KillSocket'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2182: ' WINSOCKAPI 4' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2146: syntax error : missing ';' before identifier 'DoCallBack'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2182: ' WINSOCKAPI 5' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(235) : error C2146: syntax error : missing ';' before identifier 'FromHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(252) : error C2146: syntax error : missing ';' before identifier 'ProcessAuxQueue'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(252) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2146: syntax error : missing ';' before identifier 'AuxQueueAdd'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2182: ' WINSOCKAPI 10' : illegal use of type 'void'
PocketPhone.cpp
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(137) : error C2146: syntax error : missing ';' before identifier 'FromHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(191) : error C2146: syntax error : missing ';' before identifier 'LookupHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(191) : error C2086: 'WINSOCKAPI' : redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2146: syntax error : missing ';' before identifier 'AttachHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2182: ' WINSOCKAPI 2' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2146: syntax error : missing ';' before identifier 'DetachHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2182: ' WINSOCKAPI 3' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2146: syntax error : missing ';' before identifier 'KillSocket'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2182: ' WINSOCKAPI 4' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2146: syntax error : missing ';' before identifier 'DoCallBack'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2182: ' WINSOCKAPI 5' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(235) : error C2146: syntax error : missing ';' before identifier 'FromHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(252) : error C2146: syntax error : missing ';' before identifier 'ProcessAuxQueue'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(252) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2146: syntax error : missing ';' before identifier 'AuxQueueAdd'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2182: ' WINSOCKAPI 10' : illegal use of type 'void'
PocketPhoneDlg.cpp
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(137) : error C2146: syntax error : missing ';' before identifier 'FromHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(191) : error C2146: syntax error : missing ';' before identifier 'LookupHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(191) : error C2086: 'WINSOCKAPI' : redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2146: syntax error : missing ';' before identifier 'AttachHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2182: ' WINSOCKAPI 2' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2146: syntax error : missing ';' before identifier 'DetachHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2182: ' WINSOCKAPI 3' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2146: syntax error : missing ';' before identifier 'KillSocket'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2182: ' WINSOCKAPI 4' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2146: syntax error : missing ';' before identifier 'DoCallBack'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2182: ' WINSOCKAPI 5' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(235) : error C2146: syntax error : missing ';' before identifier 'FromHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(252) : error C2146: syntax error : missing ';' before identifier 'ProcessAuxQueue'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(252) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2146: syntax error : missing ';' before identifier 'AuxQueueAdd'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2182: ' WINSOCKAPI 10' : illegal use of type 'void'
snmp_dummy.cpp
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(137) : error C2146: syntax error : missing ';' before identifier 'FromHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(191) : error C2146: syntax error : missing ';' before identifier 'LookupHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(191) : error C2086: 'WINSOCKAPI' : redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2146: syntax error : missing ';' before identifier 'AttachHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2182: ' WINSOCKAPI 2' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2146: syntax error : missing ';' before identifier 'DetachHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2182: ' WINSOCKAPI 3' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2146: syntax error : missing ';' before identifier 'KillSocket'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2182: ' WINSOCKAPI 4' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2146: syntax error : missing ';' before identifier 'DoCallBack'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2182: ' WINSOCKAPI 5' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(235) : error C2146: syntax error : missing ';' before identifier 'FromHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(252) : error C2146: syntax error : missing ';' before identifier 'ProcessAuxQueue'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(252) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2146: syntax error : missing ';' before identifier 'AuxQueueAdd'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2182: ' WINSOCKAPI 10' : illegal use of type 'void'
StdAfx.cpp
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(137) : error C2146: syntax error : missing ';' before identifier 'FromHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(191) : error C2146: syntax error : missing ';' before identifier 'LookupHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(191) : error C2086: 'WINSOCKAPI' : redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2146: syntax error : missing ';' before identifier 'AttachHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(192) : error C2182: ' WINSOCKAPI 2' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2146: syntax error : missing ';' before identifier 'DetachHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(193) : error C2182: ' WINSOCKAPI 3' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2146: syntax error : missing ';' before identifier 'KillSocket'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(194) : error C2182: ' WINSOCKAPI 4' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2146: syntax error : missing ';' before identifier 'DoCallBack'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CAsyncSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(195) : error C2182: ' WINSOCKAPI 5' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(235) : error C2146: syntax error : missing ';' before identifier 'FromHandle'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(252) : error C2146: syntax error : missing ';' before identifier 'ProcessAuxQueue'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(252) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2146: syntax error : missing ';' before identifier 'AuxQueueAdd'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2182: 'WINSOCKAPI' : illegal use of type 'void'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2040: 'WINSOCKAPI' : 'int' differs in levels of indirection from 'class CSocket *'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\mfc\include\afxsock.h(274) : error C2182: ' WINSOCKAPI 10' : illegal use of type 'void'
Error executing clarm.exe.

PocketPhone2k3.exe - 130 error(s), 0 warning(s)
LVL 4
erik_nodlandAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

furqanchandioCommented:
hi

well try posting some code that will help

cwwkieCommented:
Could you post the minimum program which generates (some of) these errors? You can use #error to stop compiling like this:

#include <afxwin.h>
#include <afxsock.h>
#error stop here
.... (rest of source code)

Place it in the cpp file which does not compile. When you've got those errors, post only the code above the #error. The #error will cause a fatal error, so the compile will stop.
jkrCommented:
>>windows.h is being included in another header file as well as winsock2.h

In one of the MFC headers you'll find the line

#error WINDOWS.H already included. MFC apps must not #include <windows.h>

(in AFXV_W32.H). And that's not just a friendly advice.
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Jaime OlivaresSoftware ArchitectCommented:
#include <afxsock.h> must reside into your stdafx.h header file.
erik_nodlandAuthor Commented:
Hi,

Sorry, not sure the problem isn't so much with the code. you can get it here from CVS. http://cvs.sourceforge.net/viewcvs.py/openh323/contrib/PocketPhone/#dirlist
This seems to compile fine on other peoples machines but I can't get it to compile on mine for some reason. It uses the openh323 libraries which I have managed to compile under EVC++4 without too many problems. It's the compilation of this app that is causing me all the problems. I'm figuring it is something to do with the include headers in the stdafx.h file perhaps. I have posted the highlights below. Many thanks

*****StdAfx.H********

#if !defined(AFX_STDAFX_H__6D32B3E2_0078_4FAA_AE46_51C2A981C11C__INCLUDED_)
#define AFX_STDAFX_H__6D32B3E2_0078_4FAA_AE46_51C2A981C11C__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000



#define VC_EXTRALEAN            // Exclude rarely-used stuff from Windows headers


#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions

#if defined(_AFXDLL)
#include <afxdtctl.h>            // MFC support for Internet Explorer 4 Common Controls
#endif

#include <afxdisp.h>        // MFC OLE automation classes
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>                  // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

 //Get lots of redfinition errors when I take this line out and comment out the afxsock.h reference below
//#include <afxsock.h>

//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.

/**** Open H323 Start ****/
#include <ptlib.h>
/**** Open H323 End ****/

            // MFC socket extensions
#include <afxsock.h>
#endif // !defined(AFX_STDAFX_H__6D32B3E2_0078_4FAA_AE46_51C2A981C11C__INCLUDED_)


******Main Source File********
erik_nodlandAuthor Commented:
Thanks for all the replies so far.
The only place I get the errors are if I put the #error statement after the #include <afxsock.h> line. If I put it in one of cpp files below I only get the error if I put the #error directive after the stdafx.h so the problem definitely seems to be with the afxsock.h include. I'm not including windows.h anywhere in the code and the #include <afxsock.h> is in the stdafx.h file.
Thanks

#error //No errors here
#include "stdafx.h"
#error //lots of errors here
#include "PocketPhone.h"
#include "PocketPhoneDlg.h"
#include "PocketEndPoint.h"

//#include <gsmcodec.h>

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CPocketEndPoint::CPocketEndPoint()
{
      m_dialog = NULL;
}

CPocketEndPoint::~CPocketEndPoint()
{

}

BOOL CPocketEndPoint::Initialise(CPocketPhoneDlg * pDlg)
{
      m_dialog = pDlg;

      AddAllCapabilities(0, 0, "*{sw}");
      AddAllUserInputCapabilities(0, 1);

      // start the H323 stack listening for incoming calls
      PString interfaces = "*";
      return StartListeners(interfaces.Tokenise(','));
}

H323Connection * CPocketEndPoint::CreateConnection(unsigned int refID)
{
      return new H323Connection(*this, refID);
}

void CPocketEndPoint::OnConnectionEstablished(H323Connection & connection, const PString & token)
{
      m_dialog->m_token = token;
      m_dialog->m_btnMakeCall.EnableWindow(FALSE);
      m_dialog->m_btnAnswer.EnableWindow(FALSE);
      m_dialog->m_btnRefuse.EnableWindow(FALSE);
      m_dialog->m_btnHangup.EnableWindow();
}

void CPocketEndPoint::OnConnectionCleared(H323Connection &, const PString &)
{
      m_dialog->m_btnAnswer.EnableWindow(FALSE);
      m_dialog->m_btnRefuse.EnableWindow(FALSE);
      m_dialog->m_btnHangup.EnableWindow(FALSE);
      m_dialog->m_btnMakeCall.EnableWindow();
}

H323Connection::AnswerCallResponse CPocketEndPoint::OnAnswerCall(H323Connection & connection, const PString &caller, const H323SignalPDU &, H323SignalPDU &)
{
      m_dialog->m_token = connection.GetCallToken();
      m_dialog->m_btnAnswer.EnableWindow();
      m_dialog->m_btnRefuse.EnableWindow();
      m_dialog->m_btnMakeCall.EnableWindow(FALSE);
      return H323Connection::AnswerCallPending;
}
jkrCommented:
>>Get lots of redfinition errors when I take this line out and comment out the afxsock.h reference below

Which ones?
erik_nodlandAuthor Commented:
Hi,

I get these errors if I move the afxsock.h to before ptlib.h

Compiling...
PocketEndPoint.cpp
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(113) : error C2011: 'fd_set' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(133) : warning C4005: 'FD_CLR' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(123) : see previous definition of 'FD_CLR'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(148) : warning C4005: 'FD_SET' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(129) : see previous definition of 'FD_SET'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(157) : error C2011: 'timeval' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(183) : warning C4005: 'IOCPARM_MASK' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(164) : see previous definition of 'IOCPARM_MASK'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(190) : warning C4005: '_IO' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(172) : see previous definition of '_IO'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(192) : warning C4005: '_IOR' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(173) : see previous definition of '_IOR'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(194) : warning C4005: '_IOW' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(174) : see previous definition of '_IOW'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(213) : error C2011: 'hostent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(226) : error C2011: 'netent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(233) : error C2011: 'servent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(245) : error C2011: 'protoent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(262) : warning C4005: 'IPPROTO_GGP' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(239) : see previous definition of 'IPPROTO_GGP'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(331) : error C2011: 'in_addr' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(389) : error C2011: 'sockaddr_in' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(399) : error C2011: 'WSAData' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(459) : warning C4005: 'SO_DONTLINGER' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(437) : see previous definition of 'SO_DONTLINGER'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(516) : warning C4005: 'AF_IPX' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(488) : see previous definition of 'AF_IPX'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(556) : warning C4005: 'AF_MAX' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(505) : see previous definition of 'AF_MAX'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(562) : error C2011: 'sockaddr' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(602) : error C2011: 'sockproto' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(641) : error C2011: 'linger' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(654) : warning C4005: 'SOMAXCONN' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(566) : see previous definition of 'SOMAXCONN'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(679) : warning C4005: 'FD_READ' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(584) : see previous definition of 'FD_READ'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(682) : warning C4005: 'FD_WRITE' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(585) : see previous definition of 'FD_WRITE'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(685) : warning C4005: 'FD_OOB' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(586) : see previous definition of 'FD_OOB'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(688) : warning C4005: 'FD_ACCEPT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(587) : see previous definition of 'FD_ACCEPT'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(691) : warning C4005: 'FD_CONNECT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(588) : see previous definition of 'FD_CONNECT'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(694) : warning C4005: 'FD_CLOSE' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(589) : see previous definition of 'FD_CLOSE'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(893) : warning C4005: 'h_errno' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(702) : see previous definition of 'h_errno'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2250) : error C2059: syntax error : '('
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2268) : warning C4002: too many actual parameters for macro 'WSACleanup'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2268) : error C2059: syntax error : '('
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2285) : error C2733: second C linkage of overloaded function 'SetLastError' not allowed
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2285) : see declaration of 'SetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2302) : warning C4002: too many actual parameters for macro 'WSAGetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2302) : error C2556: 'int __cdecl GetLastError(void)' : overloaded function differs only by return type from 'unsigned long __cdecl GetLastError(void)
'
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winbase.h(1908) : see declaration of 'GetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2302) : error C2371: 'GetLastError' : redefinition; different basic types
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winbase.h(1908) : see declaration of 'GetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2913) : error C2733: second C linkage of overloaded function 'WSAIoctl' not allowed
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2903) : see declaration of 'WSAIoctl'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(37) : error C2011: 'ip_mreq' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(99) : warning C4005: 'IP_DONTFRAGMENT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(388) : see previous definition of 'IP_DONTFRAGMENT'
PocketPhone.cpp
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(113) : error C2011: 'fd_set' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(133) : warning C4005: 'FD_CLR' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(123) : see previous definition of 'FD_CLR'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(148) : warning C4005: 'FD_SET' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(129) : see previous definition of 'FD_SET'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(157) : error C2011: 'timeval' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(183) : warning C4005: 'IOCPARM_MASK' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(164) : see previous definition of 'IOCPARM_MASK'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(190) : warning C4005: '_IO' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(172) : see previous definition of '_IO'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(192) : warning C4005: '_IOR' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(173) : see previous definition of '_IOR'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(194) : warning C4005: '_IOW' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(174) : see previous definition of '_IOW'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(213) : error C2011: 'hostent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(226) : error C2011: 'netent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(233) : error C2011: 'servent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(245) : error C2011: 'protoent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(262) : warning C4005: 'IPPROTO_GGP' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(239) : see previous definition of 'IPPROTO_GGP'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(331) : error C2011: 'in_addr' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(389) : error C2011: 'sockaddr_in' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(399) : error C2011: 'WSAData' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(459) : warning C4005: 'SO_DONTLINGER' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(437) : see previous definition of 'SO_DONTLINGER'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(516) : warning C4005: 'AF_IPX' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(488) : see previous definition of 'AF_IPX'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(556) : warning C4005: 'AF_MAX' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(505) : see previous definition of 'AF_MAX'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(562) : error C2011: 'sockaddr' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(602) : error C2011: 'sockproto' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(641) : error C2011: 'linger' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(654) : warning C4005: 'SOMAXCONN' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(566) : see previous definition of 'SOMAXCONN'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(679) : warning C4005: 'FD_READ' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(584) : see previous definition of 'FD_READ'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(682) : warning C4005: 'FD_WRITE' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(585) : see previous definition of 'FD_WRITE'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(685) : warning C4005: 'FD_OOB' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(586) : see previous definition of 'FD_OOB'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(688) : warning C4005: 'FD_ACCEPT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(587) : see previous definition of 'FD_ACCEPT'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(691) : warning C4005: 'FD_CONNECT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(588) : see previous definition of 'FD_CONNECT'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(694) : warning C4005: 'FD_CLOSE' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(589) : see previous definition of 'FD_CLOSE'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(893) : warning C4005: 'h_errno' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(702) : see previous definition of 'h_errno'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2250) : error C2059: syntax error : '('
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2268) : warning C4002: too many actual parameters for macro 'WSACleanup'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2268) : error C2059: syntax error : '('
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2285) : error C2733: second C linkage of overloaded function 'SetLastError' not allowed
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2285) : see declaration of 'SetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2302) : warning C4002: too many actual parameters for macro 'WSAGetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2302) : error C2556: 'int __cdecl GetLastError(void)' : overloaded function differs only by return type from 'unsigned long __cdecl GetLastError(void)
'
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winbase.h(1908) : see declaration of 'GetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2302) : error C2371: 'GetLastError' : redefinition; different basic types
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winbase.h(1908) : see declaration of 'GetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2913) : error C2733: second C linkage of overloaded function 'WSAIoctl' not allowed
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2903) : see declaration of 'WSAIoctl'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(37) : error C2011: 'ip_mreq' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(99) : warning C4005: 'IP_DONTFRAGMENT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(388) : see previous definition of 'IP_DONTFRAGMENT'
PocketPhoneDlg.cpp
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(113) : error C2011: 'fd_set' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(133) : warning C4005: 'FD_CLR' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(123) : see previous definition of 'FD_CLR'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(148) : warning C4005: 'FD_SET' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(129) : see previous definition of 'FD_SET'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(157) : error C2011: 'timeval' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(183) : warning C4005: 'IOCPARM_MASK' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(164) : see previous definition of 'IOCPARM_MASK'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(190) : warning C4005: '_IO' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(172) : see previous definition of '_IO'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(192) : warning C4005: '_IOR' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(173) : see previous definition of '_IOR'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(194) : warning C4005: '_IOW' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(174) : see previous definition of '_IOW'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(213) : error C2011: 'hostent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(226) : error C2011: 'netent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(233) : error C2011: 'servent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(245) : error C2011: 'protoent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(262) : warning C4005: 'IPPROTO_GGP' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(239) : see previous definition of 'IPPROTO_GGP'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(331) : error C2011: 'in_addr' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(389) : error C2011: 'sockaddr_in' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(399) : error C2011: 'WSAData' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(459) : warning C4005: 'SO_DONTLINGER' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(437) : see previous definition of 'SO_DONTLINGER'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(516) : warning C4005: 'AF_IPX' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(488) : see previous definition of 'AF_IPX'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(556) : warning C4005: 'AF_MAX' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(505) : see previous definition of 'AF_MAX'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(562) : error C2011: 'sockaddr' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(602) : error C2011: 'sockproto' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(641) : error C2011: 'linger' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(654) : warning C4005: 'SOMAXCONN' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(566) : see previous definition of 'SOMAXCONN'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(679) : warning C4005: 'FD_READ' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(584) : see previous definition of 'FD_READ'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(682) : warning C4005: 'FD_WRITE' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(585) : see previous definition of 'FD_WRITE'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(685) : warning C4005: 'FD_OOB' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(586) : see previous definition of 'FD_OOB'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(688) : warning C4005: 'FD_ACCEPT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(587) : see previous definition of 'FD_ACCEPT'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(691) : warning C4005: 'FD_CONNECT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(588) : see previous definition of 'FD_CONNECT'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(694) : warning C4005: 'FD_CLOSE' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(589) : see previous definition of 'FD_CLOSE'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(893) : warning C4005: 'h_errno' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(702) : see previous definition of 'h_errno'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2250) : error C2059: syntax error : '('
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2268) : warning C4002: too many actual parameters for macro 'WSACleanup'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2268) : error C2059: syntax error : '('
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2285) : error C2733: second C linkage of overloaded function 'SetLastError' not allowed
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2285) : see declaration of 'SetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2302) : warning C4002: too many actual parameters for macro 'WSAGetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2302) : error C2556: 'int __cdecl GetLastError(void)' : overloaded function differs only by return type from 'unsigned long __cdecl GetLastError(void)
'
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winbase.h(1908) : see declaration of 'GetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2302) : error C2371: 'GetLastError' : redefinition; different basic types
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winbase.h(1908) : see declaration of 'GetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2913) : error C2733: second C linkage of overloaded function 'WSAIoctl' not allowed
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2903) : see declaration of 'WSAIoctl'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(37) : error C2011: 'ip_mreq' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(99) : warning C4005: 'IP_DONTFRAGMENT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(388) : see previous definition of 'IP_DONTFRAGMENT'
snmp_dummy.cpp
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(113) : error C2011: 'fd_set' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(133) : warning C4005: 'FD_CLR' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(123) : see previous definition of 'FD_CLR'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(148) : warning C4005: 'FD_SET' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(129) : see previous definition of 'FD_SET'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(157) : error C2011: 'timeval' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(183) : warning C4005: 'IOCPARM_MASK' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(164) : see previous definition of 'IOCPARM_MASK'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(190) : warning C4005: '_IO' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(172) : see previous definition of '_IO'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(192) : warning C4005: '_IOR' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(173) : see previous definition of '_IOR'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(194) : warning C4005: '_IOW' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(174) : see previous definition of '_IOW'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(213) : error C2011: 'hostent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(226) : error C2011: 'netent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(233) : error C2011: 'servent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(245) : error C2011: 'protoent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(262) : warning C4005: 'IPPROTO_GGP' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(239) : see previous definition of 'IPPROTO_GGP'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(331) : error C2011: 'in_addr' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(389) : error C2011: 'sockaddr_in' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(399) : error C2011: 'WSAData' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(459) : warning C4005: 'SO_DONTLINGER' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(437) : see previous definition of 'SO_DONTLINGER'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(516) : warning C4005: 'AF_IPX' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(488) : see previous definition of 'AF_IPX'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(556) : warning C4005: 'AF_MAX' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(505) : see previous definition of 'AF_MAX'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(562) : error C2011: 'sockaddr' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(602) : error C2011: 'sockproto' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(641) : error C2011: 'linger' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(654) : warning C4005: 'SOMAXCONN' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(566) : see previous definition of 'SOMAXCONN'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(679) : warning C4005: 'FD_READ' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(584) : see previous definition of 'FD_READ'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(682) : warning C4005: 'FD_WRITE' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(585) : see previous definition of 'FD_WRITE'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(685) : warning C4005: 'FD_OOB' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(586) : see previous definition of 'FD_OOB'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(688) : warning C4005: 'FD_ACCEPT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(587) : see previous definition of 'FD_ACCEPT'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(691) : warning C4005: 'FD_CONNECT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(588) : see previous definition of 'FD_CONNECT'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(694) : warning C4005: 'FD_CLOSE' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(589) : see previous definition of 'FD_CLOSE'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(893) : warning C4005: 'h_errno' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(702) : see previous definition of 'h_errno'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2250) : error C2059: syntax error : '('
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2268) : warning C4002: too many actual parameters for macro 'WSACleanup'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2268) : error C2059: syntax error : '('
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2285) : error C2733: second C linkage of overloaded function 'SetLastError' not allowed
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2285) : see declaration of 'SetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2302) : warning C4002: too many actual parameters for macro 'WSAGetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2302) : error C2556: 'int __cdecl GetLastError(void)' : overloaded function differs only by return type from 'unsigned long __cdecl GetLastError(void)
'
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winbase.h(1908) : see declaration of 'GetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2302) : error C2371: 'GetLastError' : redefinition; different basic types
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winbase.h(1908) : see declaration of 'GetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2913) : error C2733: second C linkage of overloaded function 'WSAIoctl' not allowed
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2903) : see declaration of 'WSAIoctl'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(37) : error C2011: 'ip_mreq' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(99) : warning C4005: 'IP_DONTFRAGMENT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(388) : see previous definition of 'IP_DONTFRAGMENT'
StdAfx.cpp
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(113) : error C2011: 'fd_set' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(133) : warning C4005: 'FD_CLR' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(123) : see previous definition of 'FD_CLR'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(148) : warning C4005: 'FD_SET' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(129) : see previous definition of 'FD_SET'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(157) : error C2011: 'timeval' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(183) : warning C4005: 'IOCPARM_MASK' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(164) : see previous definition of 'IOCPARM_MASK'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(190) : warning C4005: '_IO' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(172) : see previous definition of '_IO'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(192) : warning C4005: '_IOR' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(173) : see previous definition of '_IOR'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(194) : warning C4005: '_IOW' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(174) : see previous definition of '_IOW'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(213) : error C2011: 'hostent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(226) : error C2011: 'netent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(233) : error C2011: 'servent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(245) : error C2011: 'protoent' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(262) : warning C4005: 'IPPROTO_GGP' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(239) : see previous definition of 'IPPROTO_GGP'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(331) : error C2011: 'in_addr' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(389) : error C2011: 'sockaddr_in' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(399) : error C2011: 'WSAData' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(459) : warning C4005: 'SO_DONTLINGER' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(437) : see previous definition of 'SO_DONTLINGER'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(516) : warning C4005: 'AF_IPX' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(488) : see previous definition of 'AF_IPX'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(556) : warning C4005: 'AF_MAX' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(505) : see previous definition of 'AF_MAX'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(562) : error C2011: 'sockaddr' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(602) : error C2011: 'sockproto' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(641) : error C2011: 'linger' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(654) : warning C4005: 'SOMAXCONN' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(566) : see previous definition of 'SOMAXCONN'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(679) : warning C4005: 'FD_READ' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(584) : see previous definition of 'FD_READ'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(682) : warning C4005: 'FD_WRITE' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(585) : see previous definition of 'FD_WRITE'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(685) : warning C4005: 'FD_OOB' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(586) : see previous definition of 'FD_OOB'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(688) : warning C4005: 'FD_ACCEPT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(587) : see previous definition of 'FD_ACCEPT'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(691) : warning C4005: 'FD_CONNECT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(588) : see previous definition of 'FD_CONNECT'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(694) : warning C4005: 'FD_CLOSE' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(589) : see previous definition of 'FD_CLOSE'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(893) : warning C4005: 'h_errno' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(702) : see previous definition of 'h_errno'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2250) : error C2059: syntax error : '('
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2268) : warning C4002: too many actual parameters for macro 'WSACleanup'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2268) : error C2059: syntax error : '('
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2285) : error C2733: second C linkage of overloaded function 'SetLastError' not allowed
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2285) : see declaration of 'SetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2302) : warning C4002: too many actual parameters for macro 'WSAGetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2302) : error C2556: 'int __cdecl GetLastError(void)' : overloaded function differs only by return type from 'unsigned long __cdecl GetLastError(void)
'
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winbase.h(1908) : see declaration of 'GetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2302) : error C2371: 'GetLastError' : redefinition; different basic types
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winbase.h(1908) : see declaration of 'GetLastError'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2913) : error C2733: second C linkage of overloaded function 'WSAIoctl' not allowed
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(2903) : see declaration of 'WSAIoctl'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(37) : error C2011: 'ip_mreq' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(99) : warning C4005: 'IP_DONTFRAGMENT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(388) : see previous definition of 'IP_DONTFRAGMENT'

PocketPhone2k3.exe - 95 error(s), 105 warning(s)
jkrCommented:
Ah, I see - afxsock.h includes winsock.h, whereas ptlib.h uses winsock2.h, that seems to be the cause of the problem. Try

/**** Open H323 Start ****/
#include <ptlib.h>
/**** Open H323 End ****/

         // MFC socket extensions
#define _WINSOCKAPI_
#include <afxsock.h>

erik_nodlandAuthor Commented:
Hi,

I was praying this would do it but I get the same errors. :-(
jkrCommented:
Alternatively, you could try


        // MFC socket extensions
#include <afxsock.h>

/**** Open H323 Start ****/
#define _WINSOCK2API_ // this is different!
#include <ptlib.h>
/**** Open H323 End ****/

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cwwkieCommented:
have you followed the instructions at http://www.openh323.org/build.html?

You can also take a look at the mailing list at http://www.openh323.org/mailman/listinfo/openh323

Here are two random suggestions I have found there:

include the following files:

/**** Open H323 Start ****/
#include <ptlib.h>
#include <ptlib/sockets.h>
/**** Open H323 End ****/


get rid of the IPV6 flag in the precompiler directive. (P_HAS_IPV6=0)

erik_nodlandAuthor Commented:
Hi,

Thanks for your help on this BTW :)

If I use
 
/**** Open H323 Start ****/

#include <ptlib.h>
/**** Open H323 End ****/
       // MFC socket extensions
#include <afxsock.h>
#define _WINSOCK2API_

or

**** Open H323 Start ****/

#include <ptlib.h>
/**** Open H323 End ****/
       // MFC socket extensions
#define _WINSOCK2API_
#include <afxsock.h>

I get the same errors as before.

If I use the order you suggest I get less errors than before. Now I get 66 before I got 95? Maybe we are getting close?

 // MFC socket extensions
#include <afxsock.h>

/**** Open H323 Start ****/
#define _WINSOCK2API_ // this is different!
#include <ptlib.h>
/**** Open H323 End ****/

With the above I get these errors:
Compiling...
PocketEndPoint.cpp
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(37) : error C2011: 'ip_mreq' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(99) : warning C4005: 'IP_DONTFRAGMENT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(388) : see previous definition of 'IP_DONTFRAGMENT'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(391) : error C2146: syntax error : missing ';' before identifier 'iiAddress'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(391) : error C2501: 'SOCKET_ADDRESS' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(391) : error C2501: 'iiAddress' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(392) : error C2146: syntax error : missing ';' before identifier 'iiBroadcastAddress'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(392) : error C2501: 'SOCKET_ADDRESS' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(392) : error C2501: 'iiBroadcastAddress' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(393) : error C2146: syntax error : missing ';' before identifier 'iiNetmask'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(393) : error C2501: 'SOCKET_ADDRESS' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(393) : error C2501: 'iiNetmask' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(462) : error C2144: syntax error : missing ';' before type 'int'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(462) : error C2501: 'WINSOCK_API_LINKAGE' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(462) : fatal error C1004: unexpected end of file found
PocketPhone.cpp
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(37) : error C2011: 'ip_mreq' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(99) : warning C4005: 'IP_DONTFRAGMENT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(388) : see previous definition of 'IP_DONTFRAGMENT'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(391) : error C2146: syntax error : missing ';' before identifier 'iiAddress'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(391) : error C2501: 'SOCKET_ADDRESS' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(391) : error C2501: 'iiAddress' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(392) : error C2146: syntax error : missing ';' before identifier 'iiBroadcastAddress'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(392) : error C2501: 'SOCKET_ADDRESS' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(392) : error C2501: 'iiBroadcastAddress' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(393) : error C2146: syntax error : missing ';' before identifier 'iiNetmask'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(393) : error C2501: 'SOCKET_ADDRESS' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(393) : error C2501: 'iiNetmask' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(462) : error C2144: syntax error : missing ';' before type 'int'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(462) : error C2501: 'WINSOCK_API_LINKAGE' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(462) : fatal error C1004: unexpected end of file found
PocketPhoneDlg.cpp
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(37) : error C2011: 'ip_mreq' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(99) : warning C4005: 'IP_DONTFRAGMENT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(388) : see previous definition of 'IP_DONTFRAGMENT'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(391) : error C2146: syntax error : missing ';' before identifier 'iiAddress'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(391) : error C2501: 'SOCKET_ADDRESS' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(391) : error C2501: 'iiAddress' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(392) : error C2146: syntax error : missing ';' before identifier 'iiBroadcastAddress'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(392) : error C2501: 'SOCKET_ADDRESS' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(392) : error C2501: 'iiBroadcastAddress' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(393) : error C2146: syntax error : missing ';' before identifier 'iiNetmask'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(393) : error C2501: 'SOCKET_ADDRESS' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(393) : error C2501: 'iiNetmask' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(462) : error C2144: syntax error : missing ';' before type 'int'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(462) : error C2501: 'WINSOCK_API_LINKAGE' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(462) : fatal error C1004: unexpected end of file found
snmp_dummy.cpp
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(37) : error C2011: 'ip_mreq' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(99) : warning C4005: 'IP_DONTFRAGMENT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(388) : see previous definition of 'IP_DONTFRAGMENT'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(391) : error C2146: syntax error : missing ';' before identifier 'iiAddress'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(391) : error C2501: 'SOCKET_ADDRESS' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(391) : error C2501: 'iiAddress' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(392) : error C2146: syntax error : missing ';' before identifier 'iiBroadcastAddress'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(392) : error C2501: 'SOCKET_ADDRESS' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(392) : error C2501: 'iiBroadcastAddress' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(393) : error C2146: syntax error : missing ';' before identifier 'iiNetmask'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(393) : error C2501: 'SOCKET_ADDRESS' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(393) : error C2501: 'iiNetmask' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(462) : error C2144: syntax error : missing ';' before type 'int'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(462) : error C2501: 'WINSOCK_API_LINKAGE' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(462) : fatal error C1004: unexpected end of file found
StdAfx.cpp
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(37) : error C2011: 'ip_mreq' : 'struct' type redefinition
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(99) : warning C4005: 'IP_DONTFRAGMENT' : macro redefinition
        c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(388) : see previous definition of 'IP_DONTFRAGMENT'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(391) : error C2146: syntax error : missing ';' before identifier 'iiAddress'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(391) : error C2501: 'SOCKET_ADDRESS' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(391) : error C2501: 'iiAddress' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(392) : error C2146: syntax error : missing ';' before identifier 'iiBroadcastAddress'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(392) : error C2501: 'SOCKET_ADDRESS' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(392) : error C2501: 'iiBroadcastAddress' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(393) : error C2146: syntax error : missing ';' before identifier 'iiNetmask'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(393) : error C2501: 'SOCKET_ADDRESS' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(393) : error C2501: 'iiNetmask' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(462) : error C2144: syntax error : missing ';' before type 'int'
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(462) : error C2501: 'WINSOCK_API_LINKAGE' : missing storage-class or type specifiers
c:\program files\development tools\windows ce tools\wce420\pocket pc 2003\include\armv4\ws2tcpip.h(462) : fatal error C1004: unexpected end of file found
cwwkieCommented:
>> have you followed the instructions at http://www.openh323.org/build.html

This seems to be important:

| Add to the beginning of the Include files path (note the order is important!):
|
|     C:\PWLib\Include\PwLib\MSWIN
|     C:\PWLib\Include\PtLib\MSOS
|     C:\PWLib\Include
|     C:\OpenH323\Include

erik_nodlandAuthor Commented:
Hi,

Tried adding ptlib\socket.h but got the same errors. I have gone through all the suggestions on openh323 and have all the paths included. The openh323 libraries compile fine it's just this application that doesn't work. I'm totally stuck. :-) I must be missing something but I cant spot it
jhshuklaCommented:
don't know if this helps or not but try using '#pragma once' in combination with above suggestions.
balderCommented:
Generate a macro processed (that is all include and defines are expanded) cpp file from your PocketEndPoint.cpp, do a search for ip_mreq in that file.

find the first occurence, check where it is generated/included from, do same check with the line the compiler barks about.

that should give you some clues about what is going on.


hth

erik_nodlandAuthor Commented:
Sorry, didn;t realise this was still open. Split the points. Didn't reolve the problem but appreciated the assistance.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.