Giter VIP home page Giter VIP logo

Comments (2)

ian-ross avatar ian-ross commented on June 7, 2024

Original comment date: 2010-09-18T03:57:13-0700


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).

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.

from c2hs.

mruegenberg avatar mruegenberg commented on June 7, 2024

For the benefit of people who arrive here through Google:
If you get a similar error message on newer OS X versions, try using GCC instead of LLVM, i.e

$ brew install gcc48
$ cabal install --with-gcc=gcc-4.8

from c2hs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.