Open DrJonki opened 2 years ago
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:
__attribute__((aligned(16)))
alignas(16)
struct UExport __attribute__((aligned(16))) Matrix
Same issue here. Your fix worked for me, thank you for sharing!
Ubuntu 20.04, GCC 10.3.0. Ultralight version 1.3.0 (3e70dc7)
When linking Ultralight the following error appears:
Using
__attribute__((aligned(16)))
instead ofalignas(16)
fixes the error: