Remove LinesDraw class definition from LinesDraw.cpp !
Code:#include "stdafx.h" #define GLUT_DISABLE_ATEXIT_HACK #include <windows.h> #include <GL/gl.h> #include <GL/glu.h> #include <GL/glaux.h> #include <GL/glut.h> #include "LinesDraw.h" using namespace Cosgen; /* class LinesDraw{ public: LinesDraw(); ~LinesDraw(); //void hello(); int num; }; */ LinesDraw::LinesDraw(){num=1;} LinesDraw::~LinesDraw(){num=0;} void LinesDraw::hello(){ int hello_num=0; }




Reply With Quote