Forums

Full Version: Issues with GLM?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
From lesson 10 onward we are using a maths lib called GLM, but it has come to my attention that GLM does not compile under the standard C++11 compiler settings we have for our projects.

You therefore need to set C++14 instead, that may not be currently clear on your version of code:blocks, it will depend on when you updated your version and when you updated your compiler tools.
 
Generally speaking though if you go to, build options, and tab to Other options, you can add -std=c++14  and all should be well. you can probably untick the Have G++ follow the C++11 standard opion on Compiler flags as that will now get overridden. Newer versions of Code:Blocks will also allow you to tick a box to select C++14

If you happen to have an older version of GLM on your system, you can continue to use C++11, we're not really using many specific C++11 functions just some things are quicker to initialise and access with C++11, and C++14 gives the same options

Lesson 10 has been sent to MagPi and should be on the Github now, with a default setting for C++14