Yes but as I said, if I try to write the same code with:
1 2 3
|
Graph_lib::Point tl{ 200, 200 };
Simple_window win{ tl, 600, 400, "Canvas" };
Graph_lib::Polygon poly;
|
I get the following errors:
12 error LNK1120: 11 unresolved externals C:\Users\Angmarwizardking\Documents\Visual Studio 2013\Projects\Win32Project3\Debug\Win32Project3.exe Win32Project3
1 error LNK2001: unresolved external symbol “protected: virtual void __thiscall Graph_lib::Shape::draw_lines(void)const ” (?draw_lines@Shape@Graph_lib@@MBEXXZ) C:\Users\Angmarwizardking\Documents\Visual Studio 2013\Projects\Win32Project3\Win32Project3\Source.obj Win32Project3
2 error LNK2001: unresolved external symbol “public: virtual void __thiscall Graph_lib::Shape::move(int,int)” (?move@Shape@Graph_lib@@UAEXHH@Z) C:\Users\Angmarwizardking\Documents\Visual Studio 2013\Projects\Win32Project3\Win32Project3\Source.obj Win32Project3
3 error LNK2001: unresolved external symbol “public: virtual void __thiscall Graph_lib::Open_polyline::draw_lines(void)const ” (?draw_lines@Open_polyline@Graph_lib@@UBEXXZ) C:\Users\Angmarwizardking\Documents\Visual Studio 2013\Projects\Win32Project3\Win32Project3\Source.obj Win32Project3
4 error LNK2001: unresolved external symbol “public: virtual void __thiscall Graph_lib::Closed_polyline::draw_lines(void)const ” (?draw_lines@Closed_polyline@Graph_lib@@UBEXXZ) C:\Users\Angmarwizardking\Documents\Visual Studio 2013\Projects\Win32Project3\Win32Project3\Source.obj Win32Project3
5 error LNK2019: unresolved external symbol “public: void __thiscall Graph_lib::Polygon::add(struct Graph_lib::Point)” (?add@Polygon@Graph_lib@@QAEXUPoint@2@@Z) referenced in function _main C:\Users\Angmarwizardking\Documents\Visual Studio 2013\Projects\Win32Project3\Win32Project3\Source.obj Win32Project3
6 error LNK2001: unresolved external symbol “public: virtual void __thiscall Graph_lib::Polygon::draw_lines(void)const ” (?draw_lines@Polygon@Graph_lib@@UBEXXZ) C:\Users\Angmarwizardking\Documents\Visual Studio 2013\Projects\Win32Project3\Win32Project3\Source.obj Win32Project3
7 error LNK2019: unresolved external symbol “public: __thiscall Graph_lib::Window::Window(struct Graph_lib::Point,int,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)” (??0Window@Graph_lib@@QAE@UPoint@1@HHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function “public: __thiscall Simple_window::Simple_window(struct Graph_lib::Point,int,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)” (??0Simple_window@@QAE@UPoint@Graph_lib@@HHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) C:\Users\Angmarwizardking\Documents\Visual Studio 2013\Projects\Win32Project3\Win32Project3\Source.obj Win32Project3
8 error LNK2019: unresolved external symbol “public: void __thiscall Graph_lib::Window::attach(class Graph_lib::Shape &)” (?attach@Window@Graph_lib@@QAEXAAVShape@2@@Z) referenced in function _main C:\Users\Angmarwizardking\Documents\Visual Studio 2013\Projects\Win32Project3\Win32Project3\Source.obj Win32Project3
9 error LNK2019: unresolved external symbol “public: void __thiscall Graph_lib::Window::attach(class Graph_lib::Widget &)” (?attach@Window@Graph_lib@@QAEXAAVWidget@2@@Z) referenced in function “public: __thiscall Simple_window::Simple_window(struct Graph_lib::Point,int,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)” (??0Simple_window@@QAE@UPoint@Graph_lib@@HHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) C:\Users\Angmarwizardking\Documents\Visual Studio 2013\Projects\Win32Project3\Win32Project3\Source.obj Win32Project3
10 error LNK2001: unresolved external symbol “protected: virtual void __thiscall Graph_lib::Window::draw(void)” (?draw@Window@Graph_lib@@MAEXXZ) C:\Users\Angmarwizardking\Documents\Visual Studio 2013\Projects\Win32Project3\Win32Project3\Source.obj Win32Project3
11 error LNK2001: unresolved external symbol “public: virtual void __thiscall Graph_lib::Button::attach(class Graph_lib::Window &)” (?attach@Button@Graph_lib@@UAEXAAVWindow@2@@Z) C:\Users\Angmarwizardking\Documents\Visual Studio 2013\Projects\Win32Project3\Win32Project3\Source.obj Win32Project3
So i don't really know what i have to change....
Thank you again anyway.