Semantic issues with glm::vec in OF from git

I’m currently unable to compile simple programs as it is giving me errors in various core OF files, for example this:

Is that valid syntax? Is my compiler outdated?

/home/x/src/openFrameworks/libs/openFrameworks/math/ofVectorMath.h:125: error: ‘vec’ does not name a type; did you mean ‘sec’?
  inline std::ostream& operator<<(std::ostream& os, const vec<3, T, P>& vec) {
1 Like

Ok, I just learned something. Fixed by running



We could add a new point to mentioning what steps are required when you pull changes from the repo one year later :slight_smile:

can you add send a PR adding that to the doc? it’s something that trips people up frequently

Yes. I’ll add a section “How to update openFrameworks from github”

As a first step, is git pull enough? Or do you need one of these for the submodules?

After pulling

Then install the Qt Creator - OF script (or equivalent for VS or XCode)

Those are the 4 required steps?

we don’t update submodules that often from the main repo so the best way to keep the project generator up to date is to go in it’s folder and pull from master there too

That means

cd apps/projectGenerator
git pull


yes or git pull upstream master

but upstream depends on how everyone has configured git so perhaps git pull is less confusing