0

I'm trying to use a library called OPENXLSX in my QtCreator project. When I go to build I get 3 errors:

missing terminating ' character
expected ‘,’ or ‘;’ before '\x303438'
expected ‘,’ or ‘;’ before ‘constexpr’

They complain of these 3 lines in the XLDefinitions.h file

constexpr uint32_t maxRows = 1'048'576;

constexpr uint16_t maxCols = 16'384;

constexpr uint8_t alphabetSize = 26;
eyllanesc
  • 235,170
  • 19
  • 170
  • 241
GTA.sprx
  • 817
  • 1
  • 8
  • 24

1 Answers1

0

The code uses c++14 digit separator syntax and your compiler doesn’t seem to support it. Either remove the ticks from the numbers or rather get a compiler that supports newer c++ versions (or tell it to use a newer version if it needs that). There may be other things also that won’t work, or at least work better with newer compilers.

Sami Kuhmonen
  • 30,146
  • 9
  • 61
  • 74