To fix the errors and warnings, I did the following:
Graph.h
#1 warning: swapped the order of variable declaration in struct Color to
1 2
|
Fl_Color c;
char v; // invisible and visible for now
|
#2 warning: altered index type for the loop in ~Vector_ref() to size_t
#3 warning: altered size() to return a size_t
#4 error: fixed the no-copy code to
1 2 3
|
private: // prevent copying
Vector_ref(const Vector_ref&);
Vector_ref& operator=(const Vector_ref&);
|
#5 warning: swapped the order of variable declaration in struct Rectangle to
1 2
|
int w; // width
int h; // height
|
#6 error: removed the body of struct Circle, constructor, leaving definition in cpp file
#7 error: ditto for Circle's center() method
Graph.cpp
#1 warning: changed type of index variable for loop in Shape::draw_lines() to size_t.
#2 warning: ditto for Shape::move()
#3 warning: ditto for get_encoding()
Simple_Window.h
#1 error: commenting out the using namespace Graph_lib;
#2 error: namespace qualified all the types variables with Graph_lib types : Graph_lib::Window, Graph_lib::Button, Graph_lib::Address)
Simple_Window.cpp
#1 error: added using namespace Graph_lib; just below the #include's
Window.cpp
#1 warning: changed type of index variable for loop in Window::draw() to size_t.
#2 warning: changed type of index variable for loop in Window::put_on_top() to size_t. )
Makefile.txt
#1 misc: renamed it to just "makefile"
#2 warning: added -Wno-deprecated to the compiler command line
I also added FLTK=/local/include to the top of the makefile, so I did not have to modify my existing build environment, which in MinGW in this case (with FLTK installed in the default location using "make install")