expected unqualified-id before numeric constant

A

ahso

Hi
what does this error msg mean? I don't understand what to change.
Many thanks
Michael

Multiple markers at this line
- expected unqualified-id before numeric constant
- Syntax error
 
B

Balog Pal

ahso said:
int KeyPress(int cde);
#define KeyPress 2

makes

int 2(int cde);

that looks like utter nonsense to a human, but the compiler matches some
part of it to a valid syntax and pick some element that does not fit.
 
R

Richard Herring

In message
Hi
what does this error msg mean? I don't understand what to change.
Many thanks
Michael

Multiple markers at this line
- expected unqualified-id before numeric constant
- Syntax error

so the preprocesor expands your code to

int 2(int cde);

which is indeed a syntax error.

What on earth are you trying to do?
 

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,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top