dmitry wrote:
> I try to use dynamic libraries with mingw compiler with fltk-1.3.x-r6671
> (the only configure option i used was --enable-shared )
> 
> My LD_FLAGS = -mwindows -mno-cygwin -Wl,--enable-auto-import -Wl,\
>             -enable-runtime-pseudo-reloc -lfltk_images -lfltk_png \
>               -lfltk_jpeg -lfltk -lole32 -luuid -lcomctl32
> 
> My CXX_FLAGS = -Wall -O2 -shared -mwindows -DWIN32 -DUSE_OPENGL32 \
>                -mno-cygwin -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> 
> Static linking works perfect, but whet i load several ddl with fltk windows 
> in each i get only one working.

I'm sorry, but I can't really help much. But I remember that there
are issues, if you try to use Windows dlls with FLTK objectes
or fltk source code with (maybe) some static variables. The
problem was (IIRC) that there can be multiple instances of
global variables in different dlls and/or the main exe file.

*IF* I'm right with this assumption, then this is a general
windows/dll problem that has nothing to do with FLTK - or at
least the same would work on operating systems like Linux.

Maybe you can't do what you want, and you have to redesign
your application/dll structure, but I don't know.
I hope that someone else can help better ...

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

Reply via email to