Edzard Egberts wrote:

> I wanted to learn how to install FLTK "from scratch" for Linux. I 
> succeeded to install, also saw, which directories are used for FLTK. But 
> my "Hello-World" failed when linking, I think there are some libraries 
> missing?

... in your linker statment / Makefile.

> g++ -L/usr/local/lib -L/usr/lib -o"_Fl_Linux"  ./src/_Fl_Linux.o   -lfltk
> /usr/local/lib/libfltk.a(Fl.o): In function `Fl_Widget::damage(unsigned 
> char, int, int, int, int)':
> Fl.cxx:(.text+0x5d8): undefined reference to `XUnionRectWithRegion'
> Fl.cxx:(.text+0x5f9): undefined reference to `XDestroyRegion'
> /usr/local/lib/libfltk.a(Fl.o): In function `Fl_Widget::damage(unsigned 
> char)':
> .... and so on.
> 
> I'm wondering about that, because not only FLTK, also FLUID was built 
> and works - the app should also work, shouldn't it?

Okay, then the missing libraries are available. The best you can do is to look 
at:

- fltk-config [--use-image] [--use-gl] [...] [--cxxflags] --ldflags

Use --cxxflags for the compiler and --ldflags for the linker stage.

BTW.: The easiest way to write portable Makefiles is to use fltk-config in the 
Makefile as well.

Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to