eric wrote:
> dear fltk programers:
>
> I copy arc.cxx in test directory to fltk-1.1.10 directory
> then compile it by g++ under ubuntu linux
> -------
> r...@eric-laptop:/home/eric/Dfltk/fltk-1.1.10# g++ arc.cxx
> arc.cxx:28:19: error: FL/Fl.H: No such file or directory
> arc.cxx:29:33: error: FL/Fl_Double_Window.H: No such file or directory
You can't just build programs that depend on other libraries
with with just "g++ <progname.cxx>".
In the case of FLTK, you would need "-I/home/eric/Dfltk/fltk-1.1.10"
just to fix the "No such file or directory" errors, but you'd also need
many other flags too, which are OS specific.
FLTK comes with a shell script called 'fltk-config' which can make
compiling easy. So instead of 'g++ arc.cxx', try:
./fltk-config --compile arc.cxx
..since fltk-config just happens to be in the same directory.
Or, if you have 'arc.cxx' in some other directory, then use:
/home/eric/Dfltk/fltk-1.1.10/fltk-config --compile arc.cxx
See 'fltk-config --help' for other flags.
Note that a program manipulating images would for instance need the
"--use-images" flag, and an FLTK/opengl app would need "--use-gl", etc.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk