简体   繁体   中英

Function in if statement: error expected expression

I want to compile following file:

https://gist.github.com/bodokaiser/5382281

which does not succeed because I get following error:

  CXX(target) Release/obj.target/parser/src/parser/parser.o
In file included from ../src/parser/parser.cc:2:
../src/parser/calc_head_size.cc:67:16: error: expected expression
    if (mask || isMasking(masking)) {
               ^
1 error generated.
make: *** [Release/obj.target/parser/src/parser/parser.o] Error 1

This does not make sense to me. Can it be that there is something else wrong?

Bodo

You seem to have a strange character in your source code that looks like a space but isn't. In this line:

if (mask || isMasking(masking)) {
//         ^ here

try to delete the "space" and add a real space.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM