我有这个:

#define BLA 10
#define BLABLA (0x3E+BLA)


我得到:


  错误:找不到数字文字运算符'operator“” + BLA'




示例代码:

#define BLA 10
#define BLABLA (0x3E+BLA)

int main()
{
    return BLABLA;
}


编译行(g ++ Ubuntu 5.4.0-6ubuntu1〜16.04.9):

g++ example.cpp -o example

最佳答案

以此替换第二行(即添加空格)使它很高兴:

#define BLABLA (0x3E + BLA)

关于c++ - 找不到数字文字运算符“operator”“+ BLA”,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/49210502/

10-09 00:19
查看更多