On 08/11/12 17:01, Patrick wrote:
> Hi Everyone
>
> I guess 1.0 does not get much use these days but the code base was only
> 17K lines of code back then. I would like to build it but I am getting
> errors.
Which subversion of 1.0: 1.0.0, 1.0.11..?
I just built 1.0.11, and only had to make a few mods to get it
to build all the way through on centos 5.6 x86_64 system.
I didn't encounter the scandir/dirent error you did, it didn't
come up as an issue on my system.
But perhaps fixing that should be part of your study ;)
By looking at the the manpage for scandir(3), then looking at
the code at the error line, you should be able to figure out
what to change from the errors. The worst that could happen
is you learn how to use scandir().
After running "./configure" on the stock 1.0.11 code,
I found I only had to make these changes to get it to
build all the way through:
makeinclude:
-CXX =gcc
+CXX =g++
FL/Fl_Window.H:
+class Fl_X; // add this above the class Fl_Window definition
test/cursor.cxx:
- cursor = (Fl_Cursor)(int)v;
+ cursor = (Fl_Cursor)(int)(long)v;
test/input.cxx:
- switch ((int)v) {
+ switch ((int)(long)v) {
test/keyboard.cxx (changed in two places):
- int i = int(b->user_data());
+ int i = int(long(b->user_data()));
test/scroll.cxx:
- thescroll->type(int(v));
+ thescroll->type(int(long(v)));
- thescroll->scrollbar.align(int(v));
+ thescroll->scrollbar.align(int(long(v)));
test/line_style.cxx:
- (int)(choice[0]->mvalue()->user_data()) +
- (int)(choice[1]->mvalue()->user_data()) +
- (int)(choice[2]->mvalue()->user_data()),
+ (int)(long)(choice[0]->mvalue()->user_data()) +
+ (int)(long)(choice[1]->mvalue()->user_data()) +
+ (int)(long)(choice[2]->mvalue()->user_data()),
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk