ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] gcc4.8 bad, bad
Date: Thu, 27 Feb 2014 14:17:01 +0400
Message-ID: <20140227101701.GA14455@altlinux.org> (raw)
In-Reply-To: <530EEBF4.3060002@kemsu.ru>

[-- Attachment #1: Type: text/plain, Size: 1102 bytes --]

On Thu, Feb 27, 2014 at 02:40:36PM +0700, REAL wrote:
> 27.02.2014 09:26, Dmitry V. Levin пишет:
> >>In file included from ../../src/base/dict.h:31:0,
> >>                  from freetype.cpp:142:
> >>/usr/include/c++/4.8/cstdlib: In function 'long long int std::abs(long
> >>long int)':
> >>/usr/include/c++/4.8/cstdlib:174:20: error: declaration of C function
> >>'long long int std::abs(long long int)' conflicts with
> >>    abs(long long __x) { return __builtin_llabs (__x); }
> >>                     ^
> >>/usr/include/c++/4.8/cstdlib:166:3: error: previous declaration 'long
> >>int std::abs(long int)' here
> >>    abs(long __i) { return __builtin_labs(__i); }
> >>    ^
> >>[...]
> >
> >У вас там код, эквивалентный
> >
> >extern "C" {
> >#include <cstdlib>
> >}
> >
> >- он и не компилируется.
> 
> Нет, я проверил, ничего такого там нет.

Значит, плохо проверяли: у вас в freetype.cpp написано

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
...
#include "base/dict.h"

А в base/dict.h, в свою очередь, написано
#include <cstdlib>


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

      reply	other threads:[~2014-02-27 10:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-26  4:09 ` REAL
2014-02-26 12:09   ` Dmitry V. Levin
2014-02-27  0:56     ` REAL
2014-02-27  2:26   ` Dmitry V. Levin
2014-02-27  2:29     ` REAL
2014-02-27  7:50       ` Michael Shigorin
2014-02-27  7:51         ` REAL
2014-02-27  8:23           ` Sergey Y. Afonin
2014-02-27 11:10           ` [devel] gcc4.8 bad Michael Shigorin
2014-02-27  7:40     ` [devel] gcc4.8 bad, bad REAL
2014-02-27 10:17       ` Dmitry V. Levin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140227101701.GA14455@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git