On 27 Nov 2012, at 21:08, Deech wrote: > Hi all, > I'm looking to make pure C bindings to FLTK. I'm pinging the group in case > anyone knows of any completed or ongoing efforts. If not I'd appreciate some > advice on the best way to go about it since I'm a C (and C++) newbie. I've > read some generic articles on binding C++ to C but am also seeking any FLTK > specific advice. > > The end goal is a complete FLTK-binding for Haskell. SWIG unfortunately > doesn't support Haskell and while I could go through an intermediary language > I'd like to have the fewest dependencies possible.
FLTK bindings for other languages do exist, e.g. python for example; not sure how they were developed, maybe SWIG, maybe by hand. Might be worth checking out some of those other implementations and see if there's anything you can use. FLTK itself will not easily run in a "pure C" configuration, a lot of wrappers will be needed. However, I know that others here have done exactly that so you may find useful hints and tips are forthcoming! If there was a limited set of widgets and sp forth you wanted to access from Haskell, exporting C wrappers for only those bits might be quite straightforward... maybe...! _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

