All pastes #201493 Raw Edit

Stuff

public text v1 · immutable
#201493 ·published 2006-10-13 21:23 UTC
rendered paste body
void display(void)
{
  glClear(GL_COLOR_BUFFER_BIT);
	
  std::vector<Point> 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<Point, std::allocator<Point> >::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<Point>]
main.cpp:16: error: no matching function for call to `std::vector<Point, std::allocator<Point> >::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<Point>]

make.exe: *** [main.o] Error 1

Execution terminated