PDA

View Full Version : [CPP] datacopy.cpp


deo
04-13-2005, 07:23 AM
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

deo
04-13-2005, 01:42 PM
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

deo
04-14-2005, 07:21 AM
tried other include, some other bumf now, going round in circles :(