guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Guile, C++, and Mac OS X 10.4 (powerpc)


From: Mike Solomon
Subject: Guile, C++, and Mac OS X 10.4 (powerpc)
Date: Wed, 28 Jul 2010 21:49:43 +0200
User-agent: Microsoft-Entourage/11.4.0.080122

Hey guile users,
    Trying to compile the simple example bessel.c from
Writing-Guile-Extensions.html (renamed bessel.cc because I'm using g++), I
encountered the following error:

bessel.cc: In function 'void init_bessel()':
bessel.cc:13: error: invalid conversion from 'scm_unused_struct*
(*)(scm_unused_struct*)' to 'scm_unused_struct* (*)(...)'
bessel.cc:13: error:   initializing argument 5 of 'scm_unused_struct*
scm_c_define_gsubr(const char*, int, int, int, scm_unused_struct* (*)(...))'

This even comes up when I put everything in extern "C" { ... }.  I have seen
other postings on the net for other software (lilypond, swig) that speaks of
the same issue, and some suggest that it is a problem with g++ and not
guile.  I'm using powerpc-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple
Computer, Inc. build 5370)

I know that Lilypond uses a workaround where it defines something called
GUILE_ELLIPSIS, but I am not sure how this logic can be integrated into a
small snippet of code.

Anyway, if any of you know how I can make the bessel example compile on OS X
10.4 PPC using g++ 4.0.1, I'd much appreciate it!

Cheers,
Mike





reply via email to

[Prev in Thread] Current Thread [Next in Thread]