View Full Version : [CPP] datacopy.cpp
hi, using the source in the ioFTPD folder and compiling on visual studio 6, i get these errors, any help?
c:\program files\microsoft visual studio\vc98\include\mswsock.h(154) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(85) : error C2378: 'SOCKET' : redefinition; symbol cannot be overloaded with a typedef
mr_F_2
04-13-2005, 12:16 PM
the file that you included before those 2 include files may have a syntactic error in it. not to mention the messages there probably say enough, did you include both mswsoc.h and winsock2.h? you don't need both, just use winsock2.h. that should squabble the re-definition
ok, got rid of them, now i got this:
/*
* Microsoft extended APIs.
*/
int
PASCAL FAR
WSARecvEx (
SOCKET s,
char FAR *buf,
int len,
int FAR *flags
);
c:\program files\microsoft visual studio\vc98\include\mswsock.h(68) : error C2146: syntax error : missing ';' before identifier 'FAR'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(68) : fatal error C1004: unexpected end of file found
welcome to dumbass materclass :/
mr_F_2
04-13-2005, 03:33 PM
Originally posted by deo
ok, got rid of them, now i got this:
/*
* Microsoft extended APIs.
*/
int
PASCAL FAR
WSARecvEx (
SOCKET s,
char FAR *buf,
int len,
int FAR *flags
);
c:\program files\microsoft visual studio\vc98\include\mswsock.h(68) : error C2146: syntax error : missing ';' before identifier 'FAR'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(68) : fatal error C1004: unexpected end of file found
welcome to dumbass materclass :/
i might be wrong, but shouldn't there be semi colons after each line?
SOCKET s;
char FAR *buf;
int len;
int FAR *flags;
and this:
int
PASCAL FAR
looks like a double definnition
try using the winsock2.h instead man, mswinsock seems to hate you
tried other include, some other bumf now, going round in circles :(
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.