Hi Curaga,
Without "-shared" generating errors...
/tmp/ccnotk6r.ltrans4.ltrans.o: In function `request_menu_refresh(int)':
<artificial>:(.text+0xb): undefined reference to `wmx_time'
/tmp/ccnotk6r.ltrans4.ltrans.o: In function `arg(int, char**, int&)':
<artificial>:(.text+0x15a): undefined reference to `fl_open_display()'
<artificial>:(.text+0x16a): undefined reference to `fl_display'
<artificial>:(.text+0x172): undefined reference to `XGetVisualInfo'
<artificial>:(.text+0x17c): undefined reference to `fl_visual'
<artificial>:(.text+0x18c): undefined reference to `Fl::fatal'
...
/tmp/ccnotk6r.ltrans3.ltrans.o: In function `Frame::draw()':
<artificial>:(.text+0x179): undefined reference to `Fl_Window::draw()'
/tmp/ccnotk6r.ltrans3.ltrans.o: In function `Frame::set_size(int, int, int, int, int)':
<artificial>:(.text+0xa09): undefined reference to `XSync'
collect2: error: ld returned 1 exit status
And with this command
tc@box:~/flwm$ g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti /usr/local/lib/libfltk_images.so.1.3 /usr/local/lib/libfltk_f
orms.so.1.3 /usr/local/lib/libfltk.so.1.3 -o ./../new_flwm_topside -DTOPSIDE *.C $CXXFLAGS $LDFLAGS
The errors are...
/usr/local/bin/ld: /tmp/ccgYXdlb.ltrans0.ltrans.o: undefined reference to symbol 'XConfigureWindow'
/usr/local/lib/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Please guide, what am I missing?