On 16 Mar 2007, at 17:54, Edzard Egberts wrote:

> 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]'

That comes from one of the win32 libs that you have omitted to link  
in - I can't recall which lib it is, unfortunately. It is entirely  
unrelated to the use of -mwindows, I think.

> So I think the "-mwindows" option must be inside of fltk_d.

Inappropriate reasoning. The linker flags are not in the libs. You  
have forgotten to link in some lib that is needed.

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

This look like a totally separate problem - are you sure your  
installation is correct?


> 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.

To run your application in the msys shell, just type its name (or  
possibly full/path/name ) and it should just run, opening its windows  
and sending any stdio back to the shell.

You should be able to attach gdb (or whatever other debugger you use)  
to the application once it is running from the shell, if you cannot  
make your IDE launch your application via an msys shell.




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

Reply via email to