我试图在我的QtCreator项目中使用一个名为OPENXLSX的库。当我进行构建时,出现3个错误:
missing terminating ' character
expected ‘,’ or ‘;’ before '\x303438'
expected ‘,’ or ‘;’ before ‘constexpr’
他们抱怨XLDefinitions.h
文件中的这3行
constexpr uint32_t maxRows = 1'048'576;
constexpr uint16_t maxCols = 16'384;
constexpr uint8_t alphabetSize = 26;
答案 0 :(得分:0)
代码使用c ++ 14 digit separator语法,因此您的编译器似乎不支持该语法。从数字中删除勾号,或者得到支持较新c ++版本的编译器(或在需要时告诉它使用较新版本)。可能还有其他的东西不起作用,或者至少对于较新的编译器更好。