Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 04-13-2005, 07:23 AM   #1
deo
Banned
 
Join Date: Feb 2005
Posts: 46
Default [CPP] datacopy.cpp

hi, using the source in the ioFTPD folder and compiling on visual studio 6, i get these errors, any help?

Code:
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
deo is offline  
Old 04-13-2005, 12:16 PM   #2
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Default

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
mr_F_2 is offline  
Old 04-13-2005, 01:42 PM   #3
deo
Banned
 
Join Date: Feb 2005
Posts: 46
Default

ok, got rid of them, now i got this:

Code:
/*
 * 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 :/
deo is offline  
Old 04-13-2005, 03:33 PM   #4
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Default

Quote:
Originally posted by deo
ok, got rid of them, now i got this:

Code:
/*
 * 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:
Quote:
int
PASCAL FAR
looks like a double definnition

try using the winsock2.h instead man, mswinsock seems to hate you
mr_F_2 is offline  
Old 04-14-2005, 07:21 AM   #5
deo
Banned
 
Join Date: Feb 2005
Posts: 46
Default

tried other include, some other bumf now, going round in circles
deo is offline  
Closed Thread

Tags
cprogram, error, filesmicrosoft, syntax, visual

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:32 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)