From ooo-dev-return-15896-apmail-incubator-ooo-dev-archive=incubator.apache.org@incubator.apache.org Mon Apr 2 08:15:08 2012 Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D9ED9891 for ; Mon, 2 Apr 2012 08:15:08 +0000 (UTC) Received: (qmail 6768 invoked by uid 500); 2 Apr 2012 08:15:07 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 6579 invoked by uid 500); 2 Apr 2012 08:15:07 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 6566 invoked by uid 99); 2 Apr 2012 08:15:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 08:15:06 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [95.128.32.155] (HELO srsyg17.sygroup-int.ch) (95.128.32.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 08:15:01 +0000 Received: from localhost (localhost [127.0.0.1]) by srsyg17.sygroup-int.ch (Postfix) with ESMTP id ABBD42A08F for ; Mon, 2 Apr 2012 10:14:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at srsyg17.sygroup-int.ch Received: from srsyg17.sygroup-int.ch ([127.0.0.1]) by localhost (srsyg17.sygroup-int.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cU+FO4A+wqkt for ; Mon, 2 Apr 2012 10:14:38 +0200 (CEST) Received: from sherlock.adfinis-int.ch (sherlock.adfinis-int.ch [10.9.4.39]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jean-louis.fuchs@adfinis-sygroup.ch) by srsyg17.sygroup-int.ch (Postfix) with ESMTPSA id 89DBF2A07D for ; Mon, 2 Apr 2012 10:14:38 +0200 (CEST) From: Jean-Louis 'Hans' Fuchs Content-Type: multipart/signed; boundary="Apple-Mail=_E89AFDBE-19A5-45BF-A219-8FEB41EF4CD7"; protocol="application/pgp-signature"; micalg=pgp-sha1 Subject: #ifdef __cplusplus in CoinMP (Solaris Studio) Date: Mon, 2 Apr 2012 10:14:37 +0200 Message-Id: <8132F2C8-8135-4C6B-818C-04A2B9A69381@adfinis-sygroup.ch> To: ooo-dev@incubator.apache.org Mime-Version: 1.0 (Apple Message framework v1257) X-Mailer: Apple Mail (2.1257) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_E89AFDBE-19A5-45BF-A219-8FEB41EF4CD7 Content-Type: multipart/alternative; boundary="Apple-Mail=_2C2807AD-5F04-48A0-94EE-797B1B8D9431" --Apple-Mail=_2C2807AD-5F04-48A0-94EE-797B1B8D9431 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello I have the following error when compiling CoinMP.cpp "CoinMP.h", line 114: Error: Multiple declaration for COIN_MSGLOG_CB. "CoinMP.h", line 120: Error: Multiple declaration for COIN_LPITER_CB. "CoinMP.h", line 127: Error: Multiple declaration for COIN_MIPNODE_CB. "CoinMP.h", line 131: Error: Multiple declaration for MSGLOGCALLBACK. "CoinMP.h", line 136: Error: Multiple declaration for ITERCALLBACK. "CoinMP.h", line 142: Error: Multiple declaration for MIPNODECALLBACK. 6 Error(s) detected. gmake[3]: *** [CoinMP.lo] Error 1 I think I found the problem in CoinMP.h: 109 #ifdef __cplusplus 110 extern "C" { 111 #endif Here __cplusplus is not defined, I tested that with a #error. I don't = know a good solution. Probably the best one is to define it via = CPPFlags. If you need to look for an alternative define, I use Solaris = Studio. I'm glad to help with more information or tests. Best, Jean-Louis --=20 Adfinis SyGroup AG Jean-Louis 'Hans' Fuchs, Software Engineer Keltenstrasse 98 | CH-3018 Bern Tel.: +41 31 550 31 11 | http://www.adfinis-sygroup.ch --Apple-Mail=_2C2807AD-5F04-48A0-94EE-797B1B8D9431 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
"CoinMP.h", line 120: = Error: Multiple declaration for COIN_LPITER_CB.
"CoinMP.h", = line 127: Error: Multiple declaration for = COIN_MIPNODE_CB.
"CoinMP.h", line 131: Error: Multiple = declaration for MSGLOGCALLBACK.
"CoinMP.h", line 136: Error: = Multiple declaration for ITERCALLBACK.
"CoinMP.h", line 142: = Error: Multiple declaration for MIPNODECALLBACK.
6 Error(s) = detected.
gmake[3]: *** [CoinMP.lo] Error = 1

I think I found the problem in = CoinMP.h:

109 #ifdef = __cplusplus
110 extern "C" {
111 = #endif

Here __cplusplus is not defined, I = tested that with a #error. I don't know a good solution. Probably the = best one is to define it via CPPFlags. If you need to look for an = alternative define, I use Solaris Studio. I'm glad to help with more = information or tests.

Best,
= Jean-Louis

-- 
Adfinis SyGroup AG
Jean-Louis = 'Hans' Fuchs, Software Engineer
Keltenstrasse 98 | CH-3018 = Bern
Tel.: +41 31 550 31 11 | http://www.adfinis-sygroup.ch<= /div>

= --Apple-Mail=_2C2807AD-5F04-48A0-94EE-797B1B8D9431-- --Apple-Mail=_E89AFDBE-19A5-45BF-A219-8FEB41EF4CD7 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) iQEcBAEBAgAGBQJPeV/uAAoJEImltJYw04FOVbIIAK0hBpNb2Lbz/By5oKa2puyU RyjiT4mpiZRn9tPmlWvFdsz2WFIG+Ej9r2EmFsCWj7IAKkt8upU93MDGZ7AMmed4 h1owGu7VDWMonLCS7ha9H3nRUyBMNuBJNO0uXvsdq/vr95pjvfQDdk9e1yE+DTL1 mssSTBWa1WWenVpDvCrQR8qLQNqLr67p+QugCL0H6lFTk4OXPX8bj3wdixpR4OdO w9V+dh4tKfqJyIoYF61c8l1oNDKx3r6kXOaILDFkot8TEr3qkLgImXeimhwFR2PZ XnXJw+N3Zj+yfSuM11RI5eHcp+XqKSAkI7217bkeCUNSkCF5jtssacRKxQ7iSn8= =CMMl -----END PGP SIGNATURE----- --Apple-Mail=_E89AFDBE-19A5-45BF-A219-8FEB41EF4CD7--