#33: The symbol `*' does not fit here
#33: The symbol `*' does not fit here --------------------+------------------------------------------------------- Reporter: guest | Type: defect Status: new | Priority: normal Milestone: | Component: general Version: 0.16.2 | Keywords: --------------------+------------------------------------------------------- c2hs: C header contains errors: /usr/include/cddb/cddb_cmd.h:79: (column 27) [ERROR] >>> Syntax error ! The symbol `*' does not fit here. -- Ticket URL: <http://hackage.haskell.org/trac/c2hs/ticket/33> c2hs <http://www.cse.unsw.edu.au/~chak/haskell/c2hs/> C->Haskell, An Interface Generator for Haskell
#33: The symbol `*' does not fit here --------------------+------------------------------------------------------- Reporter: guest | Type: defect Status: new | Priority: normal Milestone: | Component: general Version: 0.16.2 | Keywords: --------------------+------------------------------------------------------- Comment(by guest): I'm guessing that you're doing something like this: {{{ module CDDB where #include <cddb/cddb_cmd.h> {# context prefix = "cddb_" #} type Conn = {# pointer *conn_t #} sites :: Conn -> IO Int sites = {# call sites #} }}} It would be helpful to include such information in your bug reports so that developers can focus on the observed behaviour instead of having to figure out how to reproduce it. This is not a c2hs bug. You are not supposed to include cddb_cmd.h directly; use cddb.h instead. FWIW, it would not work in C either: {{{
echo '#include <cddb/cddb_cmd.h>' > t.c; gcc t.c In file included from t.c:1: /usr/include/cddb/cddb_cmd.h:79: error: expected ‘)’ before ‘*’ token ... }}}
#34 is the same mistake (use cdio.h instead of cdio/device.h). -- Ticket URL: <http://hackage.haskell.org/trac/c2hs/ticket/33#comment:1> c2hs <http://www.cse.unsw.edu.au/~chak/haskell/c2hs/> C->Haskell, An Interface Generator for Haskell
#33: The symbol `*' does not fit here --------------------+------------------------------------------------------- Reporter: guest | Type: defect Status: closed | Priority: normal Milestone: | Component: general Version: 0.16.2 | Resolution: invalid Keywords: | --------------------+------------------------------------------------------- Changes (by duncan): * status: new => closed * resolution: => invalid Comment: On the assumption that the previous comment is correct, I'm closing the ticket. If the original bug reporter thinks this is wrong then please reopen the ticket and provide more details. -- Ticket URL: <http://hackage.haskell.org/trac/c2hs/ticket/33#comment:2> c2hs <http://www.cse.unsw.edu.au/~chak/haskell/c2hs/> C->Haskell, An Interface Generator for Haskell
participants (1)
-
c2hs