Ultralight icon indicating copy to clipboard operation
Ultralight copied to clipboard

GCC 10 compilation fails

Open DrJonki opened this issue 3 years ago • 2 comments

Ubuntu 20.04, GCC 10.3.0. Ultralight version 1.3.0 (3e70dc7)

When linking Ultralight the following error appears:

.../include/Ultralight/Matrix.h:41:18: error: expected identifier before ‘alignas’
   41 |   struct UExport alignas(16) Matrix
      |                  ^~~~~~~

Using __attribute__((aligned(16))) instead of alignas(16) fixes the error:

struct UExport __attribute__((aligned(16))) Matrix

DrJonki avatar Oct 19 '22 07:10 DrJonki

Same issue here. Your fix worked for me, thank you for sharing!

b0o avatar Mar 01 '23 02:03 b0o