Code:
SkinnedMesh *palletMesh = new SkinnedMesh();
Pallet *pallet = new Pallet(palletMesh);

m_vRenderObjects.push_back(pallet);      // Error here
To what function do these statements belong? - as posted they don't belong to any function which could be why you are getting an error.

Here is the pseudocode:
It would be much better if you posted the actual code rather than pseudocode so that we don't have to guess what your code is actually trying to do!