Objective-C sources

I'm making bindings to a library partially written in Objective-C. If I put those sources under c-sources, I get stuff like Warning: the following files would be used as linker inputs, but linking is not being done: glfw/lib/cocoa/cocoa_enable.m ghc: no input files How can I fix this? The problem is in the "if os(darwin)" of this project: http://github.com/bsl/GLFW-b

On Fri, 2009-12-11 at 02:42 -0600, Brian Lewis wrote:
I'm making bindings to a library partially written in Objective-C. If I put those sources under c-sources, I get stuff like
Warning: the following files would be used as linker inputs, but linking is not being done: glfw/lib/cocoa/cocoa_enable.m ghc: no input files
http://hackage.haskell.org/trac/hackage/ticket/188
How can I fix this?
I don't think there's a simple solution. You could build the code yourself in the Setup.hs and include it into the library, however cabal does not provide anything particularly useful to help you with that. If you've got the time to help us with a proper solution that'd be much appreciated. Duncan
participants (2)
-
Brian Lewis
-
Duncan Coutts