Hello,

forgot to tell, I'm using FLTK 1.1.7.

Okay, my problems means, that parts of the software are made with 
different "-m" options. To make things clearer I made a test app, that 
only opens a FL_Window:

g++  -o"Fl_Test.exe"  ./Main.o   -lfltk_d -lole32 -luuid -lcomctl32 
-lwsock32 -lsupc++
c:/MinGW/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libfltk_d.a(Fl_Double_Window.o)(.text+0x23):
 
In function `Z9fl_makeDCP9HBITMAP__':
c:/system/fltk/src/Fl_Double_Window.cxx:80: undefined reference to 
[EMAIL PROTECTED]'
...

So I think the "-mwindows" option must be inside of fltk_d. I took a 
grep for "-mwindows" and found it relevant (also found it in makefiles, 
but they are created by configure options) in "configure" and 
"configure.in":

     CYGWIN* | MINGW*)
        CFLAGS="-mwindows -DWIN32 $CFLAGS"
        CXXFLAGS="-mwindows -DWIN32 $CXXFLAGS"
        LDFLAGS="-mwindows $LDFLAGS"

This seems to be clear (I don't know anything about configure files) and 
I tried to replace the "-mwindows" flags by "-mconsole", made a 
configure, started make and it failed telling me:

process_begin: CreateProcess((null), autoconf, ...) failed.
make (e=2): The system cannot find the specified file.
c:\MinGW\bin\make.exe: *** [configure] Error 2

Okay, I tried again and just deleted "-mwindows ": After that it makes 
the libs, but fails, when linking FLUID. Also for my test app there was 
no change. I grepped again and "mwindows" only seems to be findable in 
makeinclude.bak files. "bak" didn't seem to be an active file to me. I 
also compiled test app without flag and made the lib with 
--enable-debug. I continued to be out of ideas... :o(

Regarding to Arthurs hint: I'm using MSYS, but also Eclipse-IDE and I 
don't know of a way, to tell Eclipse using MSYS for debugging.

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

Reply via email to