[Hackage] #852: Not possible to #include "*_stub.h" from C code

Hackage cvs-ghc at haskell.org
Sun May 29 07:33:39 CEST 2011


#852: Not possible to #include "*_stub.h" from C code
----------------------------+-----------------------------------------------
  Reporter:  dankna         |        Owner:         
      Type:  defect         |       Status:  new    
  Priority:  normal         |    Milestone:         
 Component:  Cabal library  |      Version:  1.8.0.6
  Severity:  normal         |     Keywords:         
Difficulty:  unknown        |   Ghcversion:         
  Platform:                 |  
----------------------------+-----------------------------------------------
 Cabal doesn't make it possible to #include "*_stub.h" files from C code,
 because those files have not yet been generated at the time that it wants
 to check for their existence, which is during "cabal configure".

 At first I was going to ask for advice because I didn't really see a
 solution, but now that I think about it, I think correct behavior is to
 omit the check for whether stub files exist and compile, but to check for
 the existence of files which /could/ generate them, which is to say, are
 Haskell files and match the module portion of the name.  So I'll implement
 that.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/852>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects



More information about the cabal-devel mailing list