Started learning WxWidgets. You need to create an XYZArray via WX_DECLARE_OBJARRAY and WX_DEFINE_OBJARRAY. But something does not work, although I did everything as in the documentation.
#ifndef WXPOINTS_H_INCLUDED #define WXPOINTS_H_INCLUDED //#include "xyz.h" #include <wx/dynarray.h> class XYZ; WX_DECLARE_OBJARRAY(XYZ, XYZArray); class XYZ { public: float x; float y; float z; //void print(); }; #include <wx/arrimpl.cpp> WX_DEFINE_OBJARRAY(XYZArray); class wxPoints { public: wxPoints(); XYZArray arr; void Test(); }; #endif // WXPOINTS_H_INCLUDED 