May as well post everything from source to whatever that builds it so we (or I) can easily see what's up.
Well...I have the FLTK 1.10.x...and can get that in any version quickly, so everything else (including what you have of Stroustrup's files - who knows what tiny thing is ajar)
I accidentally left the GUI2.h in my project. When I cleared it out the errors reduce to ONLY 22==> Please don't waste your time on all that crap I just posted!!! See the following errors==>
Severity Code Description Project File Line
Error C2061 syntax error: identifier 'Window' Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 34
Error C2061 syntax error: identifier 'Window' Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 34
Error C2143 syntax error: missing ';' before '*' Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 54
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 54
Error C2238 unexpected token(s) preceding ';' Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 54
Error C2143 syntax error: missing ';' before '*' Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 54
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 54
Error C2238 unexpected token(s) preceding ';' Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 54
Error C2061 syntax error: identifier 'Window' Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 67
Error C2061 syntax error: identifier 'Window' Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 67
Error C2061 syntax error: identifier 'Window' Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 78
Error C2061 syntax error: identifier 'Window' Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 78
Error C2061 syntax error: identifier 'Window' Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 89
Error C2061 syntax error: identifier 'Window' Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 89
Error C2061 syntax error: identifier 'Window' Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 106
Error C2061 syntax error: identifier 'Window' Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 106
Error C2065 'win': undeclared identifier Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 108
Error C2228 left of '.attach' must have class/struct/union Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 108
Error C2065 'win': undeclared identifier Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 108
Error C2228 left of '.attach' must have class/struct/union Chapter12_GUI_test c:\program files (x86)\microsoft visual studio 14.0\vc\include\extra\gui.h 108
Error C2440 'return': cannot convert from 'std::ifstream' to 'bool' Chapter12_GUI_test c:\users\*****\documents\visual studio 2015\projects\chapter12_gui_test\chapter12_gui_test\graph.cpp 313
Error C2660 'Graph_lib::Widget::attach': function does not take 1 arguments Chapter12_GUI_test c:\users\*****\documents\visual studio 2015\projects\chapter12_gui_test\chapter12_gui_test\window.cpp 36
Yes, send your compliment of the files as you have them...whatever minor changes may be required I'll see (or see it's missing)....pack up a zip of you can
That last resend was a SUCCESS! You are too kind to actually put that on your site! I will use what yo sent and if there is any problems I suppose I can just grab it again from your page.
So you said minor changes and mainly ORDER of the includes due to the "fragility" issue you had commented about before?
Yes, some dependency between gui.h and window.h required a bit of weeding out, which I dealt with only by adding gui.h were it appeased the compiler.
I suppose a more thorough investigation would reorder the content of these headers. It may be merely a few forward declarations in isolation would be cleaner, but I'm only diving so deep. I figured that if it compiled and functioned, that would move things forward (and likely for anyone else searching for FLTK and finding this).
I do intend to pull that file off the server soon, but I'll give it a day or two.
Very cool page BTW. You do some awesome work with Make a Wish foundation.
Thank you again for all of your help. I'll let you know if I have any issues but I looked through the list and noticed you mainly made changes to Window.h, Window.cpp and Graph.cpp?? Got that right??
If you left comments in there I'll obviously look them over to see what I can learn and figure out regarding what you did and then WHY you did it.....
I'll keep you posted and hopefully this will probably solve my GUI library issues.
Wow libraries are very unintuitive to install and not easy.
...just wait, boost is in your future :)
I didn't get the linker error, but this is one error (typically, it is quite verbose, the last error is merely an overall re-count of the number of unresolved externals (it says there's 1). So, that's 1 missing function.
The attach function in the button class taking a window as the parameter. See if you can figure out why....this runs over here, as packaged to you.
See if you can find the Button::attach( Window &) definition, notice what file it is in, see if that is factually being linked into your project.