Duncan Gibson wrote:
>
>>> I have just taken fltk-1.3.x/test/hello.cxx and compiled it with
>>> a Makefile tweaked from that supplied by Greg in STR #2149. Does
>>> the following Makefile work for you? Don't forget to replace "TAB "
>>> with a real TAB character.
>>> [...Makefile snipped...]
>
>> it's the same effect as before, which does't surprise, because the
>> $(shell...) expressions evaluate to same, I put litterarly in my
>> makefile.
>
> Are you telling me that if you rename your hello.cpp to hello.cxx
> and use the Makefile that was included in the previous message, you
> get exactly the same errors as you had before ?
>
> If your hello.cpp is not the same as fltk-1.3.x/test/hello.cxx could
> you please post it here. If you get the same errors with the hello.cxx
> then I suspect that you have some serious b0rkage in your setup.
>
> Cheers
> Duncan
Got it!
The makefile you posted used `fltk-config --ldstaticflags` as linker options
and the build in rules I used listed the object AFTER the libraries.
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