praveen wrote: > Hi, > I tried compiling CubeMain.cxx, CubeView.cxx and CubeViewUI.cxx in fltk > examples folder putting these files together in makefile. I got many > undefined reference errors starting from undefined reference to > `Fl::visual(int)'.May i know how to solve this errors? Expecting the early > reply.
fltk-config is your friend ;-) To find out what is needed, do this: fltk-config --cflags fltk-config --cxxflags fltk-config --ldflags The first two are for compiling, and you won't need them here, but the last shows the required linker flags. Maybe you also need to add more options, e.g. --use-images, but you can see what you can do with fltk-config --help There are also ways to embed these calls in your Makefile... Another neat trick that I use sometimes: remove the target file (e.g. CubeView.exe and run make in the target directory with make -n This will show you all required options. You could also remove the .silent directive from FLTK's Makefile, and maybe more. Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

