1

Topic: Preprocessor error

What not so in the code?

mysocket.c:199:18: error: invalid token at start of a preprocessor expression
#if ENABLE_LOGXX> = 2

2

Re: Preprocessor error

Rolg Hupin;
#endif - is?

3

Re: Preprocessor error

blonduser wrote:

Rolg Hupin;
#endif - is?

Like is, but there it is written about 18 character, and it is a gap position "XXX>"

4

Re: Preprocessor error

Rolg Hupin;
ENABLE_LOGXX - As it is defined?

5

Re: Preprocessor error

Rolg Hupin;
ENABLE_LOGXX - It should be known at the moment of compilation and not contain a call of functions of time of execution.

6

Re: Preprocessor error

blonduser wrote:

Rolg Hupin;
ENABLE_LOGXX - It should be known at the moment of compilation and not contain a call of functions of time of execution.

You tell lies, not is mandatory to the preprocessor character to be defined in a condition #if

7

Re: Preprocessor error

The moderator: Let's consider a question essence

8

Re: Preprocessor error

NekZ;
"It is known at the moment of compilation" - it is defined or it is not defined.

9

Re: Preprocessor error

Hupin wrote:

What not so in the code?

mysocket.c:199:18: error: invalid token at start of a preprocessor expression
#if ENABLE_LOGXX> = 2

At you the variable ENABLE_LOGXX is defined so that to it operation> = is inapplicable