473,395 Members | 1,649 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,395 software developers and data experts.

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

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
Jul 22 '05 #1
3 5502

"Balaji" <ba****@email.arizona.edu> wrote in message
news:49**************************@posting.google.c om...
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
Jul 22 '05 #2
Balaji wrote:
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 (
Jul 22 '05 #3
"Balaji" <ba****@email.arizona.edu> wrote in message
news:49**************************@posting.google.c om...
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
Jul 22 '05 #4

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

Similar topics

0
by: Mike Thomas | last post by:
This one must be very simple. I am trying to run an SQL Serv 7.0 stored proc from a VBA module in an Access 2000 app. This stored proc runs fine when I remove the parameters from the stored proc...
3
by: Nathan Sokalski | last post by:
When trying to submit data to an Access database using ASP.NET I recieve the following error: System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(Int32 hr) +41...
5
by: r.nikhilk | last post by:
Hi, Currently, we are porting C++ applications from 32 bit to 64 bit on AIX platform. (The current version of AIX is 5.3 and xlC verison is 8.0). We are able to compile the applications by...
3
by: mandogon | last post by:
Hello peoples i am having trouble compiling this program getting a the error is "Declaration Syntax error" using borland c++ bulider v.6 if any one can help thanks void __fastcall...
3
by: Maciek | last post by:
All, I'm having a problem building a library (VMime) with Visual .NET 2003. It's including, among others, gnutls.h from the GNU TLS library and I'm getting syntax errors in that file. For...
2
by: technocraze | last post by:
Hi guys, I have encountered this error when updating the values to the MS Acess table. Error : Update on linked table failed. ODBC sql server error Timeout expired. MS Acess is my front end and...
9
by: sudhanshu | last post by:
Hi friends, I am facing this error in my vb 6.0 code. The code is... Dim conn As New ADODB.Connection Dim cmd As New ADODB.Command Private Sub cmdOK_Click()
3
by: Chrizo | last post by:
Hi, I am new to C++ and I cannot seem to figure out what is wrong with my code. It looks fine to me but when I try to create an object of class Location I get this error which I do not understand...
2
by: rahul more | last post by:
Hiiii I am making my project in VB6.0 and my back end is Access 2003. I hav one problem..... When I going to save data into database, at at cmdSave_Click event, VB giving me error(Error mentioned...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.