Christopher R. Halbersma wrote:
> Okay I figured it out. Apparently I need a couple more options here. I
> compiled it using.
> $ fltk2-config --compile main.cpp
>
> and it worked. It also gave me the commands it used.
> $ c++ -I/usr/local/include -I/usr/local/include/freetype2
> -I/usr/local/include -O2 -fno-strict-aliasing -pipe -I/usr/local/include
> -Wno-non-virtual-dtor -o main main.cpp -L/usr/local/lib
> /usr/local/lib/libfltk2.a -L/usr/local/lib -R/usr/local/lib -L/usr/local/lib
> -pthread -lX11 -lXi -lXinerama -lXft -lpthread -lm -lXext -lsupc++
>
> This works so I'll just use fltk2-config in the future and hopefully I won't
> have a problem. Thanks for you help man.
Ahh, good.
Yes, fltk-config should get you what you need.
It gets tricky when you have a lot of modules to link all
together. But I think there were a few posts on that recently
(last few months).. look on fltk.general for the
Subject: "Should fltk-config --ldflags be renamed"
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs