473,397 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

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

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)

Nov 17 '05 #1
2 2086

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

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.
Nov 17 '05 #2
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]"
<wi*************@telenet.be> wrote:

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

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.


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Arturo DiDonna | last post by:
Hello everyone. I am trying to compile someone else code and I am stuck with compilation problems using the g++ 3.3 compiler. Basically, when compiling the following code, I get this error...
2
by: Susan Baker | last post by:
Hi, I have declared a class MyClass in a header file MyClass.h I have then gone onto define the class in MyClass.cpp. This is (roughly) what the definition (.cpp) file looks like: #include...
1
by: Schuco | last post by:
Hello! Can someone tell me is it possible to use Winsock control in Access? If yes please post some examples or web adresses where to find more information. Thank you!
7
by: Nadav | last post by:
Hi I am writing some kind of a storage system that have to deal with large amounts of data passing over the net, Now, I Wonder... traditional programming would use win32 Winsock DLL as the means...
6
by: Leandro Berti via DotNetMonster.com | last post by:
Hi All, I wrote a code to do serial communication with an equipament. When i use the code outside of threaded class it seens work properly, but when i put inside a class and execute a thread in...
21
by: matvdl | last post by:
I have a system that was originally developed in asp - the pages are saved in SQL (there are over 10,000 pages) and saved to a temp directory in the server when requested by a client. I have...
5
by: kc | last post by:
Hi Just upgrading a app from VB6 to VB.Net. All is going well apart from the Winsock control. The first thing we notice is that there does not appear to be a .Net version (please correct me if...
4
by: Patrick | last post by:
Hello, I'm currently trying the OpenSSL Library, but I got some problems. I want to create a server and client application that communicate through the OpenSSL API, but this code doesn't work. I...
0
by: smallGame | last post by:
Hi, I am programing with VisualC++ under Windows vista, I get a problem to link with all winsock functions. I can't find winsock.lib and with the file winsock.dll I get an error message:...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.