I use fltk-1.3-dev to compile unicode version
tc@box:~/fluff1.0.4$ make
g++ "-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" `fltk-config --cxxflags` -Wall -c fluff.cpp
gcc `fltk-config --use-images --ldflags` -lfltk_images -lm fluff.o -o fluff
fluff.o: In function `btnbar_help_cb()':
fluff.cpp:(.text+0x426): undefined reference to `Fl_Help_Dialog::textsize(int)'
fluff.o: In function `Fl_DND_Box::callback_deferred(void*)':
fluff.cpp:(.text+0x563): undefined reference to `Fl_Widget::do_callback(Fl_Widget*, void*)'
fluff.o: In function `File_Detail_List_Browser::draw()':
fluff.cpp:(.text+0x704): undefined reference to `fl_graphics_driver'
fluff.cpp:(.text+0x74b): undefined reference to `fl_graphics_driver'
fluff.o: In function `Fl_DND_Box::handle(int)':
fluff.cpp:(.text+0x882): undefined reference to `Fl_Widget::do_callback(Fl_Widget*, void*)'
fluff.o: In function `wait_cursor()':
fluff.cpp:(.text+0x91b): undefined reference to `fl_cursor(Fl_Cursor, unsigned int, unsigned int)'
fluff.o: In function `normal_cursor()':
fluff.cpp:(.text+0x942): undefined reference to `fl_cursor(Fl_Cursor, unsigned int, unsigned int)'
fluff.o: In function `Fluff_Window::handle(int)':
fluff.cpp:(.text+0xa508): undefined reference to `fl_cursor(Fl_Cursor, unsigned int, unsigned int)'
fluff.cpp:(.text+0xa638): undefined reference to `fl_cursor(Fl_Cursor, unsigned int, unsigned int)'
fluff.o: In function `File_Detail_List_Browser::handle(int)':
fluff.cpp:(.text+0xa7cc): undefined reference to `fl_cursor(Fl_Cursor, unsigned int, unsigned int)'
fluff.o:fluff.cpp:(.text+0xa8dc): more undefined references to `fl_cursor(Fl_Cursor, unsigned int, unsigned int)' follow
fluff.o: In function `File_Detail_List_Browser::handle(int)':
fluff.cpp:(.text+0xaa3a): undefined reference to `Fl_Widget::do_callback(Fl_Widget*, void*)'
fluff.o: In function `faded(unsigned int&, float)':
fluff.cpp:(.text+0xac3c): undefined reference to `Fl::get_color(unsigned int, unsigned char&, unsigned char&, unsigned char&)'
fluff.o: In function `configure_colors()':
fluff.cpp:(.text+0xad06): undefined reference to `Fl::get_color(unsigned int, unsigned char&, unsigned char&, unsigned char&)'
fluff.cpp:(.text+0xad1f): undefined reference to `Fl::set_color(unsigned int, unsigned char, unsigned char, unsigned char)'
fluff.cpp:(.text+0xad3b): undefined reference to `Fl::get_color(unsigned int, unsigned char&, unsigned char&, unsigned char&)'
fluff.cpp:(.text+0xad54): undefined reference to `Fl::set_color(unsigned int, unsigned char, unsigned char, unsigned char)'
fluff.cpp:(.text+0xad68): undefined reference to `Fl::get_color(unsigned int, unsigned char&, unsigned char&, unsigned char&)'
fluff.cpp:(.text+0xad81): undefined reference to `Fl::set_color(unsigned int, unsigned char, unsigned char, unsigned char)'
fluff.cpp:(.text+0xad9d): undefined reference to `Fl::get_color(unsigned int, unsigned char&, unsigned char&, unsigned char&)'
fluff.cpp:(.text+0xadb6): undefined reference to `Fl::set_color(unsigned int, unsigned char, unsigned char, unsigned char)'
fluff.o: In function `fl_color(int)':
fluff.cpp:(.text._Z8fl_colori[fl_color(int)]+0x7): undefined reference to `fl_graphics_driver'
fluff.o:(.rodata._ZTV16Dir_Tree_Browser[vtable for Dir_Tree_Browser]+0x3c): undefined reference to `Fl_Browser::item_last() const'
fluff.o:(.rodata._ZTV16Dir_Tree_Browser[vtable for Dir_Tree_Browser]+0x50): undefined reference to `Fl_Browser::item_text(void*) const'
fluff.o:(.rodata._ZTV24File_Detail_List_Browser[vtable for File_Detail_List_Browser]+0x3c): undefined reference to `Fl_Browser::item_last() const'
fluff.o:(.rodata._ZTV24File_Detail_List_Browser[vtable for File_Detail_List_Browser]+0x50): undefined reference to `Fl_Browser::item_text(void*) const'
fluff.o:(.rodata._ZTV17Fl_Select_Browser[vtable for Fl_Select_Browser]+0x3c): undefined reference to `Fl_Browser::item_last() const'
fluff.o:(.rodata._ZTV17Fl_Select_Browser[vtable for Fl_Select_Browser]+0x50): undefined reference to `Fl_Browser::item_text(void*) const'
fluff.o:(.rodata._ZTV16Fl_Multi_Browser[vtable for Fl_Multi_Browser]+0x3c): undefined reference to `Fl_Browser::item_last() const'
fluff.o:(.rodata._ZTV16Fl_Multi_Browser[vtable for Fl_Multi_Browser]+0x50): undefined reference to `Fl_Browser::item_text(void*) const'
fluff.o:(.rodata._ZTV15Fl_Hold_Browser[vtable for Fl_Hold_Browser]+0x3c): undefined reference to `Fl_Browser::item_last() const'
fluff.o:(.rodata._ZTV15Fl_Hold_Browser[vtable for Fl_Hold_Browser]+0x50): undefined reference to `Fl_Browser::item_text(void*) const'
collect2: ld returned 1 exit status
make: *** [all] Error 1
tc@box:~/fluff1.0.4$ fltk-config --compile fluff.cpp
g++ -I/usr/local/include -march=i486 -mtune=i686 -Os -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT -o 'fluff' 'fluff.cpp' /usr/local/lib/libfltk.a -lXext -lpthread -ldl -lm -lX11
/tmp/ccSVVDTT.o: In function `btnbar_help_cb()':
fluff.cpp:(.text+0x405): undefined reference to `Fl_Help_Dialog::Fl_Help_Dialog()'
fluff.cpp:(.text+0x41c): undefined reference to `Fl_Help_Dialog::load(char const*)'
fluff.cpp:(.text+0x426): undefined reference to `Fl_Help_Dialog::textsize(int)'
fluff.cpp:(.text+0x42e): undefined reference to `Fl_Help_Dialog::show()'
fluff.cpp:(.text+0x448): undefined reference to `Fl_Help_Dialog::visible()'
fluff.cpp:(.text+0x45e): undefined reference to `Fl_Help_Dialog::~Fl_Help_Dialog()'
fluff.cpp:(.text+0x474): undefined reference to `Fl_Help_Dialog::~Fl_Help_Dialog()'
collect2: ld returned 1 exit status
tc@box:~/fluff1.0.4$
and vi fluff.cpp
void btnbar_help_cb(void)
{
// Fl_Help_Dialog hd;
// IgnoreNextKey = 1;
// hd.load("/usr/local/share/doc/fluff/fluff_help.htm");
// hd.textsize(14);
// hd.show();
// while (hd.visible()) {
// Fl::wait(1);
// }
}
I fluff.cpp [Modified] 3932/6551 60%
#include "FontSetup.h"
I fluff.cpp [Modified] 78/6551 1%
then
tc@box:~/fluff1.0.4$ fltk-config --compile fluff.cpp
g++ -I/usr/local/include -march=i486 -mtune=i686 -Os -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT -o 'fluff' 'fluff.cpp' /usr/local/lib/libfltk.a -lXext -lpthread -ldl -lm -lX11
tc@box:~/fluff1.0.4$
the "fluff" exefile is 573.40KB
tc@box:~/fluff1.0.4$ strip fluff
the "fluff" exefile change to 480.52KB
why can use "fltk-cofig --compile fluff.cpp " and can not use "make" ?