The mystery seems lies in the gcc command. If I use "fltk2-config --compile fltkhello1.cxx", it will output "gcc -I/usr/local/include -I/usr/include/freetype2 -Wno-non-virtual-dtor -o fltkhello1 fltkhello1.cxx -L/usr/local/lib /usr/local/lib/libfltk2.a -lX11 -lXi -lXinerama -lXcursor -lXft -lpthread -lm -lXext -lsupc++" and this is the real gcc command to be executed. My previous faulty gcc command is: "g++ -o fltkhello1 fltkhello1.cxx -I/usr/local/include -L/usr/local/lib -lfltk2 -lXext -lXft -lX11 -lXi -lm".
I guess what makes the difference is: "-I/usr/include/freetype2". Still, it's just my conjecture, since I have no knowledge in the details of compiler.
_______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
