> after i install every package and ready to go(compile) some > simple fltk program from Mr. Stroustrup "Programming-Principle and > practice using C++" 4th ed., chapter 12's first example program > (chapter.12.3.cpp copied from his website, > http://www.stroustrup.com/Programming/ > ) > I get a lot compile errors, which is really out of novice as me to > figure out. > ------------------------------------------------------------- > > # /home/eric/Dfltk/fltk-1.1.10/fltk-config --compile chapter.12.3.cpp > g++ -I/home/eric/Dfltk/fltk-1.1.10 \ > -I/home/eric/Dfltk/fltk-1.1.10/png \ > -I/home/eric/Dfltk/fltk-1.1.10/jpeg \ > -o chapter.12.3 chapter.12.3.cpp \ > /home/eric/Dfltk/fltk-1.1.10/lib/libfltk.a -ldl -lm -lXext -lX11 > In file included from /usr/include/c++/4.4/ext/hash_map:60, > from std_lib_facilities.h:34, > from Graph.h:13, > from GUI.h:11, > from Simple_window.h:10, > from chapter.12.3.cpp:7:
If I remember correctly, Stroustrup's book is based on FLTK-2 and it appears that you are trying to run his examples using FLTK-1.1.10. You will need to download the latest FLTK-2.0 snapshot using the link under the Quick Info area at the top left of the FLTK home page. The current snapshot is for FLTK-2.0.x-r7725. For more info, see http://www.fltk.org/articles.php?L825 Article #825: What are the versions of FLTK? D. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

