thanks -D = FL_SHARED helped. And as i supposed i could ran multiple ddl with 
fltk windows

>
> A really nasty issue. The solution:=0A=0ASet the pre-processor variable -D =
> FL_SHARED and link against the libfltk2.dll.a varieties of the libraries. A=
> ssuming you have already successfully compiled the dynamic libs.=0A=0ACheer=
> s,=0ADK=0A=0A--- On Thu, 3/12/09, Albrecht Schlosser <[email protected]=
> > wrote:=0A=0A> From: Albrecht Schlosser <[email protected]>=0A> Subjec=
> t: Re: [fltk.general] Mingw undefined reference to `Fl::run()'=0A> To: fltk=
> @easysw.com=0A> Date: Thursday, March 12, 2009, 12:38 PM=0A> dmitry wrote:=
> =0A> > I try to use dynamic libraries with mingw compiler=0A> with fltk-1.3=
> ..x-r6671=0A> > (the only configure option i used was --enable-shared=0A> )=
> =0A> > =0A> > My LD_FLAGS =3D -mwindows -mno-cygwin=0A> -Wl,--enable-auto-i=
> mport -Wl,\=0A> > =A0=A0=A0 =A0 =A0 =A0=0A> -enable-runtime-pseudo-reloc -l=
> fltk_images -lfltk_png \=0A> >=A0 =A0 =A0 =A0 =A0 =A0=0A> =A0=A0=A0-lfltk_j=
> peg -lfltk -lole32 -luuid=0A> -lcomctl32=0A> > =0A> > My CXX_FLAGS =3D -Wal=
> l -O2 -shared -mwindows -DWIN32=0A> -DUSE_OPENGL32 \=0A> >=A0 =A0 =A0 =A0 =
> =A0 =A0 =A0 =A0=0A> -mno-cygwin -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE=
> =0A> > =0A> > Static linking works perfect, but whet i load several=0A> ddl=
>  with fltk windows in each i get only one working.=0A> =0A> I'm sorry, but =
> I can't really help much. But I remember=0A> that there=0A> are issues, if =
> you try to use Windows dlls with FLTK=0A> objectes=0A> or fltk source code =
> with (maybe) some static variables.=0A> The=0A> problem was (IIRC) that the=
> re can be multiple instances of=0A> global variables in different dlls and/=
> or the main exe=0A> file.=0A> =0A> *IF* I'm right with this assumption, the=
> n this is a=0A> general=0A> windows/dll problem that has nothing to do with=
>  FLTK - or=0A> at=0A> least the same would work on operating systems like L=
> inux.=0A> =0A> Maybe you can't do what you want, and you have to redesign=
> =0A> your application/dll structure, but I don't know.=0A> I hope that some=
> one else can help better ...=0A> =0A> Albrecht=0A> ________________________=
> _______________________=0A> fltk mailing list=0A> [email protected]=0a> http:=
> //lists.easysw.com/mailman/listinfo/fltk=0A> =0A=0A=0A
>

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

Reply via email to