> And here's the error message I get after trying to compile it:
>
> $ g++ -Wall -o fltktest fltktest.cpp
> fltktest.cpp:18:2: warning: no newline at end of file
> [...] undefined reference to `vtable for Fl_Box'
> collect2: ld returned 1 exit status
Well, yes, it would give an error. How does the linker know where to
find the definitions of the fltk stuff?
try:
fltk-config --compile fltktest.cpp
this will create fltktest, but will also show you the full preprocessor
and linker options that you may require. On my Linux setup this gives:
$ fltk-config --compile fltktest.cpp
g++ -I/scratch/duncan/include -I/scratch/duncan/include \
-I/usr/X11R6/include -I/usr/X11R6/include \
-D_THREAD_SAFE -D_REENTRANT \
-o fltktest fltktest.cpp \
-L/usr/X11R6/lib -L/scratch/duncan/lib -L/usr/X11R6/lib \
/scratch/duncan/lib/libfltk.a -lpthread -ldl -lm -lXext -lX11
where the original single line has been broken for clarity.
Hope this helps.
Duncan
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk