From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LgMIb-0002mh-A2 for garchives@archives.gentoo.org; Sun, 08 Mar 2009 16:56:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 21742E040B; Sun, 8 Mar 2009 16:56:24 +0000 (UTC) Received: from mail-fx0-f175.google.com (mail-fx0-f175.google.com [209.85.220.175]) by pigeon.gentoo.org (Postfix) with ESMTP id D28E7E040B for ; Sun, 8 Mar 2009 16:56:23 +0000 (UTC) Received: by fxm23 with SMTP id 23so1100715fxm.34 for ; Sun, 08 Mar 2009 09:56:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=rbLUsvSdIu/JMX+6cp9V0MwYX10/ahP0QqyfyKw7MvI=; b=myYCjHQSR2e67PDWORArV0teN2qqM5MNj38enpF2cmtpM/x0sdSHv72+73wtyoXWKZ 0dPibf04lfd60QL9H0RW0BXCD02fgtzQ63nCn9Mv36q7clpESTpf5ODWfo4+s6qvXRlo sroyAhQOB8JoaP0P+KjMhp1/2YcGL292Rff5c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=YvQRkuLylw1s221E9MAuiD0xVQCY3YYRMKpQ9fYSHQSDvjcwXE0omnw9YgYYubQzfe O6B1QvJBwuc/EesneqXvx+vn0Sb79UmOKwg7OMj8TptI0l+0nM3rfVIvG2Ojjujak6SU t2DCL7sg5c1oMXEKI6WCMaRGbAlx3wmKHOiGE= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.103.240.5 with SMTP id s5mr2156463mur.133.1236531383112; Sun, 08 Mar 2009 09:56:23 -0700 (PDT) In-Reply-To: <1236527339.15761.97.camel@camille.espersunited.com> References: <1236439606.15761.65.camel@camille.espersunited.com> <1236527339.15761.97.camel@camille.espersunited.com> Date: Sun, 8 Mar 2009 18:56:23 +0200 Message-ID: Subject: Re: [gentoo-user] gcc: error: 'nothrow' was not declared in this scope From: "Arttu V." To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 840e1d56-c65f-4949-bf27-f11ed50c2ecc X-Archives-Hash: 0aefc3a66295ddd2f1e44e521bcc8e3b On 3/8/09, Michael Sullivan wrote: > On Sun, 2009-03-08 at 17:27 +0200, Arttu V. wrote: >> On 3/7/09, Michael Sullivan wrote: >> > michael@camille OurRPG $ make >> > g++ -O2 -W -Wall -pedantic `sdl-config --cflags` -c draw.cpp >> > enemyparty.o allyparty.o >> > /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory: In function >> > 'std::pair<_Tp*, int> std::__get_temporary_buffer(ptrdiff_t, _Tp*)': >> > /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory:83: error: >> > 'nothrow' was not declared in this scope >> >> Have you tried to help the compiler find nothrow declaration by >> explicitly doing: >> >> #include >> >> (Disclaimer: I'm no c++ guru, just googled for that.) >> > I put it in there, but it didn't help. Thanks for trying. Another thing might be to try the -E option for gcc, and check the results to see if it actually correctly includes everything necessary when preprocessing. After that, I'm out of ideas, it could be your code or it could be the compiler. -- Arttu V.