> I need to create a dll with fltk code inside, but compiling 
> with Devc++, it give me a liker error...why?
> 
> I've linked some library .a in linker option...

If you are using devc++, that is based on the mingw tools. I'm not sure
if that can build the DLL directly within devc++, but it can easily be
done at the command line, then you can link in the created DLL's in your
devc++ projects.

To build a DLL using the mingw tools at the command line, see this
HowTo.
http://www.fltk.org/articles.php?L598

You really need the Msys shell and DTK installed, but that is very easy
to do.

Then, get a very recent tarball of fltk-1.1 - one of the 1.1.8 snapshots
is good, since DLL support for fltk with mingw was only fixed recently
(and I'm not sure it even works at all with fltk-2 yet.)

Then, when you run configure, add "--enable-shared" to the configure
options, then "make" as normal.

When this is complete, several mgwfltk*.dll files will be in the src
directory, and these can be copied where ever you need them.

That should work. Works for me, anyway.

Note, however, that personally I don't really believe in shared
libraries for fltk, since it has such a compact footprint anyway.

Why do you think you need the DLL? Perhaps there is another way?
-- 
Ian



SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to