Duncan Gibson wrote:
>
>>> I have just taken fltk-1.3.x/test/hello.cxx and compiled it with
>>> a Makefile tweaked from that supplied by Greg in STR #2149. Does
>>> the following Makefile work for you? Don't forget to replace "TAB "
>>> with a real TAB character.
>>> [...Makefile snipped...]
>
>> it's the same effect as before, which does't surprise, because the
>> $(shell...) expressions evaluate to same, I put litterarly in my
>> makefile.
>
> Are you telling me that if you rename your hello.cpp to hello.cxx
> and use the Makefile that was included in the previous message, you
> get exactly the same errors as you had before ?
>
> If your hello.cpp is not the same as fltk-1.3.x/test/hello.cxx could
> you please post it here. If you get the same errors with the hello.cxx
> then I suspect that you have some serious b0rkage in your setup.
>
> Cheers
> Duncan
Yes, it is. Its just that I'm used to calling C++ source files .cpp instat
of .cxx. I copied the source from the fltk Programming Manual / 2 - FLTK
Basics:
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
int main(int argc, char **argv) {
Fl_Window *window = new Fl_Window(300,180);
Fl_Box *box = new Fl_Box(20,40,260,100,"Hello, World!");
box->box(FL_UP_BOX);
box->labelsize(36);
box->labelfont(FL_BOLD+FL_ITALIC);
box->labeltype(FL_SHADOW_LABEL);
window->end();
window->show(argc, argv);
return Fl::run();
}
Damaged system? Well, unlikly I think. I have that problem on both machines.
One running SuSE 10.0, the other 10.3. But never the less possible.
Has anybody done that example on such a system. In TWO steps (compile and
link separatly). Doing it in one step works, but is not practical for some
serious work.
Greetings, Dieter
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk