void display(void) { glClear(GL_COLOR_BUFFER_BIT); std::vector points; points.push_back(new Point(1, 1)); points.push_back(new Point(1, 2)); glBegin(GL_LINES); points[0].plot(); glEnd(); glFlush(); } Compiler: Default compiler Building Makefile: "C:\projects\PlotIt\Makefile.win" Executing make... make.exe -f "C:\projects\PlotIt\Makefile.win" all g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" main.cpp: In function `void display()': main.cpp:15: error: no matching function for call to `std::vector >::push_back(Point*)' C:/Dev-Cpp/include/c++/3.4.2/bits/stl_vector.h:557: note: candidates are: void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = Point, _Alloc = std::allocator] main.cpp:16: error: no matching function for call to `std::vector >::push_back(Point*)' C:/Dev-Cpp/include/c++/3.4.2/bits/stl_vector.h:557: note: candidates are: void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = Point, _Alloc = std::allocator] make.exe: *** [main.o] Error 1 Execution terminated