Nope... declaring the vector as a global var like you did still gives the same errors... but thanks anyway.
My mistake here is to have been away from coding for so long.
Those functions are all outdated, and their structural logic is probably very flawed.
Still, i´d like to make the old code run again to fix it up little by little, but it seems that i´ll already have to make essential changes to it just to get to this stage.
Many parts have been taken from other old examples, and many functions might be easily replaced by small instructions, perhaps.
Still, i´ll give the initial fix-it a go.