From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Solomon Newsgroups: gmane.lisp.guile.user Subject: Guile, C++, and Mac OS X 10.4 (powerpc) Date: Wed, 28 Jul 2010 21:49:43 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1280346803 9893 80.91.229.12 (28 Jul 2010 19:53:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Jul 2010 19:53:23 +0000 (UTC) To: Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jul 28 21:53:18 2010 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OeCgl-0001Hp-S1 for guile-user@m.gmane.org; Wed, 28 Jul 2010 21:53:16 +0200 Original-Received: from localhost ([127.0.0.1]:49933 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeCXy-000194-VF for guile-user@m.gmane.org; Wed, 28 Jul 2010 15:44:11 -0400 Original-Received: from [140.186.70.92] (port=60474 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeCXp-00017E-Iw for guile-user@gnu.org; Wed, 28 Jul 2010 15:44:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OeCXo-0006iW-Io for guile-user@gnu.org; Wed, 28 Jul 2010 15:44:01 -0400 Original-Received: from smtp03.osg.ufl.edu ([128.227.74.70]:41112 helo=smtp.ufl.edu) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OeCXo-0006iI-Eu for guile-user@gnu.org; Wed, 28 Jul 2010 15:44:00 -0400 Original-Received: from [10.101.0.58] (nsc.ciup.fr [193.52.24.125]) (authenticated bits=0) by smtp.ufl.edu (8.14.0/8.14.0/3.0.0) with ESMTP id o6SJhuYD028536 for ; Wed, 28 Jul 2010 15:43:58 -0400 User-Agent: Microsoft-Entourage/11.4.0.080122 Thread-Topic: Guile, C++, and Mac OS X 10.4 (powerpc) Thread-Index: AcsujgXvRIZfOJqBEd+ETgARJHM+bg== X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-07-28_03:2010-02-06, 2010-07-28, 2010-07-28 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-1005130000 definitions=main-1007280136 X-UFL-Spam-Level: * X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8023 Archived-At: 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