简体   繁体   English

if语句中的函数:错误预期表达式

[英]Function in if statement: error expected expression

I want to compile following file: 我要编译以下文件:

https://gist.github.com/bodokaiser/5382281 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. 尝试删除“空间”并添加实际空间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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