>>>>> On Tue, 9 Mar 2010 02:32:33 -0700, Ben <[email protected]> said:

> On Mon, Mar 8, 2010 at 10:49 AM, Rick Kunath <[email protected]> wrote:
>>>> What am I missing here? Anyone have any ideas?
>>> Yes, you forgot --enable-threads for FLTK's configure command.

> No. I copied and pasted that configure options line right from the
> page; and subsequently when I remade FLTK, I did a make clean first,
> then make, then make install. I just went back and did the entire
> sequence again, and got exactly the same result.

Can you compile and link the following program with your FLTK binaries?

--------------------cut here--------------------
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Button.H>

void close_cb(Fl_Widget* w, void*)
{
        w->window()->do_callback();
}

int main(int argc, char** argv)
{
        Fl_Window w(100, 100);
        Fl_Button b(20, 40, 60, 20, "Close");
        w.end();
        b.callback(close_cb);

        Fl::lock();
        w.show(argc, argv);

        return Fl::run();
}
--------------------cut here--------------------

Sample compiler command:

  g++ -o fl-lock fl-lock.cc $(fltk-config --cxxflags --ldflags)

Alternatively there's threads.cxx in FLTK's test/ subdirectory.


-- 

73,
Stelios, M0GLD.
_______________________________________________
fldigi-alpha mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/fldigi-alpha

Reply via email to