On 28 Nov 2009, at 4:41, Richard Crisafulli wrote: > Hello, > I'm new to FLTK and I'm trying to compile a program in Windows > that was written originally on Linux. I can compile it on Linux, > but on Windows using FLTK 1.1.9, I get the following error: > > > $ fltk-config --use-images --compile fl_moxgen.cxx > g++ -I/usr/local/include -I/usr/local/include/FL/images -mwindows - > DWIN32 -mno-c > ygwin -o fl_moxgen fl_moxgen.cxx -mwindows -mno-cygwin /usr/local/ > lib/libfltk_im > ages.a -lfltk_png -lfltk_z -lfltk_jpeg /usr/local/lib/libfltk.a - > lole32 -luuid - > lcomctl32 -lwsock32 > c:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin > \ld.exe: cannot fin > d -lfltk_png > collect2: ld returned 1 exit status > > > I've searched for a possible solution for hours, and have yet to > come up with anything to solve the problem. I think I just have > something not configured correctly, but I can't figure it out > > I can compile other programs, but just not this one. Any > suggestions on what to try next will be most appreciated. Thanks. >
There's a howto here: http://www.fltk.org/articles.php?L598 It uses mingw32 rather than cygwin, but the process is identical. (For irrelevant historical reasons I always favour mingw for building apps on win32 over cygwin...) It rather looks as if you need to enable your fltk lib with the "-- enable-local-png --enable-local-zlib --enable-local-jpeg" options set... And then ensure that the path correctly point at the thus- generated libfltk_png.a. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

