On 10.05.2011 09:33, some868one wrote: > hello, I compiled FLTK 1.3 on windows XP with this configure options (as > suggested to me on STR #2622): > ./configure --enable-localjpeg --enable-localpng --enable-localzlib > --host=i686-w64-mingw32 --build=i686-w64-mingw32 CC=i686-w64-mingw32-gcc > CXX=i686-w64-mingw32-g++ CFLAGS=-DMINGW_WINGDI_FIXED > CXXFLAGS=-DMINGW_WINGDI_FIXED LDFLAGS="-static-libgcc -static-libstdc++" > > everything eventually compiled and all the test programs run as they should.
Fine :-) > now I have a vary basic question: all the files in the lib directory are *.a > files (e.g. libfltk.a), unlike regular library files on windows which are > *.lib (for static) or *.dll (for dynamic). the FLTK libs on cygwin (which > depend on X11) are dlls. > so is anything wrong here? Nothing is wrong, but you didn't build the dll files, you will have all the needed libs linked in your executable files statically with this configure line. You would need --enable-shared in configure to do this, but ... unfortunately this doesn't work with your Cygwin cross compiler (just tested, but no time to look into it right now). It works with native MinGW though and builds the .lib files (in lib/) and the .dll files (in src/*.dll and test/fltkdll.dll). Hint: since you are using Cygwin, you can test whether a .exe file has wrong dependencies by using cygcheck, e.g. see $ cygcheck test/tabs.exe Look at all the first level dependencies, whether there are any Cygwin or fltk (non-Windows) dependencies. Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

