Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lexical or Preprocessor issue

Error descriptions

I'm getting these 2 errors whilst archiving the project.

  • Macro name is missing
  • Macro names must be identifiers

Any ideas what's going on?

like image 479
Kirill Simakov Avatar asked May 31 '26 18:05

Kirill Simakov


1 Answers

What it says on the tin.

The first is #define, if you have this on its own, what is it defining? You need an identifier/name after the #define, such as #define VARIABLE.

The second does provide some sort of name, but it's simply a number. Identifiers cannot start with a number (just like variable names can't). and hence isn't classed as an identifier.

like image 196
WDUK Avatar answered Jun 03 '26 08:06

WDUK