Complier error!! error C2059: syntax error : '('

B

Balaji

I'm trying to do some basic socket programming.

here is the line of code which is creating problem..

int FAR PASCAL __declspec (dllexport)(char * addr,int port)

Hers is the error I'm getting..

error C2059: syntax error : '('

Any help is appreciated..

Balaji
 
H

Howard

Balaji said:
I'm trying to do some basic socket programming.

here is the line of code which is creating problem..

int FAR PASCAL __declspec (dllexport)(char * addr,int port)

Hers is the error I'm getting..

error C2059: syntax error : '('

Any help is appreciated..

Balaji

Well, it would be hard for me to know what's wrong without knowing what FAR,
PASCAL and __declspec are. I'd guess they're macros, but what they expand
to is unkown. This appears to be Windows stuff (and possibly OLD windows
stuff, given the FAR specifier), so you might ask in a windows newsgroup.
(Also, shouldn't there be a semi-colon at the end of that line?)

-Howard
 
R

Ron Natalie

Balaji said:
I'm trying to do some basic socket programming.

here is the line of code which is creating problem..

int FAR PASCAL __declspec (dllexport)(char * addr,int port)
There's no name for the function here. Should be a function
name between the first ) and the following (
 
R

Rade

Balaji said:
I'm trying to do some basic socket programming.

here is the line of code which is creating problem..

int FAR PASCAL __declspec (dllexport)(char * addr,int port)

Hers is the error I'm getting..

error C2059: syntax error : '('

Any help is appreciated..

Balaji

Is this a function declaration? If yes, where is the name of the function ?

Rade
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top