Aaron M. Ucko wrote:

> Dieter Gardeike <[email protected]> writes:
> 
>> g++ -t -L/usr/local/lib -L/usr/X11R6/lib -lfltk -lXext -lXft -lfontconfig
>> -lXinerama -lpthread -ldl -lm -lX11  hello.o   -o hello
> 
> Try listing hello.o *before* any libraries; on most Unixish platforms,
> including Linux, the linker makes a single pass, and takes only those
> portions of static libraries it already knows it needs.
> 

Got it!

As said in the other posting i had tried differnt orders. But the I must
have had some other options wrong. That makefile below does it.

Thanks, Dieter

CC = g++

CXXFLAGS = -I/usr/local/include -I/usr/include/freetype2
-I/usr/X11R6/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT

LDFLAGS = -L/usr/local/lib -L/usr/X11R6/lib -lfltk -lXext -lXft -lfontconfig
-lXinerama -lpthread -ldl -lm -lX11 $(CXXFLAGS)

hello : hello.o
        $(CC) hello.o -o hello $(LDFLAGS)
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to