Probably I should change something but I can't see it.
I could use only the g++ command, but it would be nice to understand how
to use "fltk-config" also.
You can use fltk-config either to output some flags, for instance with
$ fltk-config --use-images --cxxflags
which outputs the compiler flags you need to compile a program with fltk
and fltk_images *or* you can use it to compile a *single* C++ source
file but you can't combine both in one command.
Options like '--use-images' are used to modify the output of the related
command, i.e. (in this case) add the fltk_images libs and corresponding
compiler flags.
Basically this means: if you want to compile more than one file you'd
better use a script or a Makefile or write a CMake project file
(CMakeLists.txt) and use that to build and compile your app.
Just in case you don't know: the backticks (`...`) in your command above
(`fltk-config --ldflags --use-images`) mean: run the given command in a
shell and insert the output of this command at this place in the command
line.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.