Alex wrote:
> You can try this one.
> http://aleksoft.net/samples/table.tar.bz2

        Cool -- after some small mods (mostly #include filename casing),
        was able to compile on linux with:

g++ `fltk2-config --cxxflags` Table.cxx
g++ `fltk2-config --cxxflags` Collection.cxx
g++ `fltk2-config --cxxflags` TestTable.cxx
g++ TestTable.o Collection.o Table.o `fltk2-config --ldstaticflags`

        Here are the mods I made because linux is case sensitive..
        very little, considering linux probably wasn't the intended platform..!




--- table-orig/Table.cxx        2007-01-02 12:27:46.000000000 -0800
+++ table/Table.cxx     2008-08-01 19:35:28.298378296 -0700
@@ -4,6 +4,8 @@
 */

 #include "Table.H"
+#include <stdlib.h>            // abs()
+
 Table::Table(int X, int Y, int W, int H, uint rows,
                uint cols,
                uint rowHeight,





--- table-orig/Table.H  2008-08-01 19:44:32.890587696 -0700
+++ table/Table.H       2008-08-01 19:44:34.532338112 -0700
@@ -14,9 +14,9 @@
 #include <fltk/draw.h>
 #include <fltk/events.h>
 #include "Collection.H"
-#include <fltk/Cursor.H>
-#include <fltk/input.H>
-#include <fltk/damage.H>
+#include <fltk/Cursor.h>
+#include <fltk/Input.h>
+#include <fltk/damage.h>

 using namespace fltk;




--- table-orig/TestTable.cxx    2007-01-02 12:30:30.000000000 -0800
+++ table/TestTable.cxx 2008-08-01 19:38:01.699057848 -0700
@@ -5,7 +5,7 @@
 */

 #include "Table.H"
-#include <fltk/font.H>
+#include <fltk/Font.h>
 #include <fltk/ask.h>
 #include <vector>
 #include <string>


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to