> > The driving force behind this has been Stroustrup's beginner's book
> on C++. He spends five chapters on Graphics and GUI, using a self-
> designed interface to FLTK that supposedly simplifies things. He has a
> bunch of header and cpp files on his website you need to download and
> get running, not to mention getting FLTK properly installed in the
> first place. Let me tell you it has been a royal pain in the ass to
> deal with. I still have lot's of errors to get through.
>
> One of us on the dev team should get that book; perhaps we can
> address
> common things people new to programming can run into initially.
>
> You could probably help us to that end by letting us know here
> things you learned/overcame during the process, as that info can
> help others in the same situation.
A while back (several years now) I did take a look - I don't have the book, but you can download the examples and stuff freely from the website.
I believe there has been a new edition of the book published since then, so I’d hope that the example code has been updated (I have not checked recently...)
My observations were:-
- The code pretty much just built out of the box for me, one WinXX/msys/mingw, and for OSX. The distributed samples expected to be built at the command line, and the WinXX build files were heavily MSVC oriented, but using the "unix" build scripts pretty much Just Worked.
- Dr.S.'s GUI code is somewhat... um... well, he does some things "under the covers" in his framework that are not really the fltk way, and on my (at the time very high-end multi-core Mac) that was actually causing problems because some GUI elements were spinning... I created patches, but never sent them; how do you tell Bjarne S. his code is wrong?
(I assume this will have been fixed by others in the meantime... Though I guess we could/should check...)
- (This next bit is going to sound hard on the OP, Fred, but I do not mean it to be) I lurked about to see what sort of comments the examples were getting, and there was *a lot* of traffic from folks trying the examples and struggling, often really quite badly.
After watching for a while it became apparent that the real issue was seldom the examples themselves (nor, indeed, fltk) but that the posters generally had a very poor grasp of what their toolchains did, how compilers/linkers work, how the libraries were linked in, how dependencies are resolved, and so forth. And many of these people were struggling to get IDE's running, where it seemed Dr.S. had not set up any IDE support (I guess he wants folks to use the tools and understand them...?)
So: yes we should pull a copy of the recent examples and try them. We probably ought to feed back any comments on his use of fltk to Dr.S. too, I suppose.
But whether we can (and even if we can, whether we should!) make it easier to build the examples? That is a much trickier question.
Selex ES Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************