> Just an update, that after changing the paths as I had suspected, the 
> compilation problems are gone. However, the linker doesn't find the FLTK 
> library and fails miserably. I took a look in "/usr/local/lib" and found 
> seven files there starting like "libfltk2_z.a". I guess these are library 
> files needed? Now the command I issued was:
> 
>     g++ -Wall TestFastLiteLib.cpp -o TestFastLiteLib  
> -I/usr/local/include/fltk/compat/ -L/usr/local/lib  -lXext -lX11 -lm

        Your application appears the be FLTK, eg:

                #include <FL/Fl.h>              // FLTK1 style include

        ..but I get the impression you've got FLTK2 installed,
        which is a whole other thing.

        Make sure you've downloaded the correct version of FLTK
        for your app, which would be fltk 1.1.9.

        BTW, the above link line appears to be wrong in several ways:

                1) It's linking against Xwindows (-lXext -lX11)
                   which would be right for a linux or irix build, but not for 
windows

                2) It's not linking the FLTK libraries (fltk.lib, etc) or any of
                   the OS libraries that FLTK needs (wsock32.lib, user32.lib, 
etc..)
        

        I'm afraid I know nothing about Cygwin, I just use the MS compiler
        when building things on Windows, but there are docs on how to build
        FLTK 1.x on windows with MinGW/Msys over here:
        http://www3.telus.net/public/robark/#getsoft
        Not sure how current that info is.

        You might be able to build with Cygwin too, maybe someone else
        can point you in the right direction for that.

        But it does seem like you've got a mixup of trying to build an
        FLTK1.x app against FLTK2 which won't work.. use FLTK 1.1.9
        to link your app against.. 1.1.9 is the latest stable release
        for 1.1.x applications.

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

Reply via email to