Connecting Tech Pros Worldwide Forums | Help | Site Map

Problems compiling app with winsock. Can someone help me please.

Erik
Guest
 
Posts: n/a
#1: Nov 17 '05
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)


Willy Denoyette [MVP]
Guest
 
Posts: n/a
#2: Nov 17 '05

re: Problems compiling app with winsock. Can someone help me please.



"Erik" <erik@[spamm1ngN0spamm1ng]scrappy.freeserve.co.uk> wrote in message
news:dg8tc15k1l1u580hgs82f1240qpbbh0sss@4ax.com...[color=blue]
> 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[/color]


Please don't multipost, you posted to the appropriate NG
microsoft.public.windowsce.embedded.vc, threre is no reason to post the same
question here.
Willy.


Erik
Guest
 
Posts: n/a
#3: Nov 17 '05

re: Problems compiling app with winsock. Can someone help me please.


Sorry, my mistake. I meant to post it in the embedded one first.
Apologies


On Fri, 8 Jul 2005 18:09:16 +0200, "Willy Denoyette [MVP]"
<willy.denoyette@telenet.be> wrote:
[color=blue]
>
>"Erik" <erik@[spamm1ngN0spamm1ng]scrappy.freeserve.co.uk> wrote in message
>news:dg8tc15k1l1u580hgs82f1240qpbbh0sss@4ax.com.. .[color=green]
>> 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[/color]
>
>
>Please don't multipost, you posted to the appropriate NG
>microsoft.public.windowsce.embedded.vc, threre is no reason to post the same
>question here.
>Willy.
>[/color]

Closed Thread


Similar C# / C Sharp bytes