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 1LfyQT-0001Gh-UY for garchives@archives.gentoo.org; Sat, 07 Mar 2009 15:26:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B7FAEE028C; Sat, 7 Mar 2009 15:26:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 70B7FE028C for ; Sat, 7 Mar 2009 15:26:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 088B564AB5 for ; Sat, 7 Mar 2009 15:26:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 required=5.5 tests=[AWL=0.000, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uUX5zfkiwqho for ; Sat, 7 Mar 2009 15:26:49 +0000 (UTC) Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.241]) by smtp.gentoo.org (Postfix) with ESMTP id 2873064AD0 for ; Sat, 7 Mar 2009 15:26:49 +0000 (UTC) Received: by rv-out-0708.google.com with SMTP id c5so892652rvf.24 for ; Sat, 07 Mar 2009 07:26:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=qWriExFLG62qx9z0rG8bSOGuUCYsTraZlTnX7FOKCvw=; b=L9FxbiRhpc3prgjXKYK5uX8H19XN+dMW2BRnthNzHhz4nmurHLY1HNC7C3ffuAVB1E S7tbJxonf/CEWuT35wkR5bLnF8EKUFndrCaRhmakexDhDGU6VTxyu+MwBBI0iIZ5wHpy baKREB23UfVY/s/VNPVMFjCNqT2ZOkx78bmUk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=hxk0r06rCBhwlYL1sXfBzbwwN0bYVQGQcrJAlwaMsJhQE+vbczxRcApQO4CW+xcyxM bHdBzSTGNPhFS1M1RFjk1i4bj5reBz2Cv6N1q+7Xdpc/PoQM6Rmyj8dl8HugQxSorxSA zmEzDk/Rsn8XMH4b61v6jF0PanNxUaVoUru84= Received: by 10.114.37.9 with SMTP id k9mr2272052wak.183.1236439608811; Sat, 07 Mar 2009 07:26:48 -0800 (PST) Received: from ?192.168.1.3? (ppp-70-128-108-39.dsl.tulsok.swbell.net [70.128.108.39]) by mx.google.com with ESMTPS id n20sm6562349pof.17.2009.03.07.07.26.47 (version=SSLv3 cipher=RC4-MD5); Sat, 07 Mar 2009 07:26:48 -0800 (PST) Subject: [gentoo-user] gcc: error: 'nothrow' was not declared in this scope From: Michael Sullivan To: gentoo-user@lists.gentoo.org Content-Type: text/plain Date: Sat, 07 Mar 2009 09:26:46 -0600 Message-Id: <1236439606.15761.65.camel@camille.espersunited.com> 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 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 2cccefdb-569b-49f9-8e68-fce74b0e7d8b X-Archives-Hash: 7f0253ba12326e419f22d02ef7f8b729 I've wrote a program, and when I compile it gcc balks: 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 /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory: In function 'void std::return_temporary_buffer(_Tp*)': /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory:123: error: 'nothrow' was not declared in this scope party.h: At global scope: party.h:7: warning: 'class Party' has virtual functions but non-virtual destructor allyparty.h:9: warning: 'class AllyParty' has virtual functions but non-virtual destructor enemyparty.h:8: warning: 'class EnemyParty' has virtual functions but non-virtual destructor draw.cpp: In member function 'void Draw::Init()': draw.cpp:36: warning: missing initializer for member 'SDL_Color::unused' draw.cpp:37: warning: missing initializer for member 'SDL_Color::unused' draw.cpp: At global scope: draw.cpp:84: warning: unused parameter 'state' make: *** [draw.o] Error 1 Should I report this as a bug, or is there a way I can fix it? I'm using: camille local # emerge -pv gcc These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-devel/gcc-4.1.2 USE="doc fortran gtk mudflap nls vanilla (-altivec) -bootstrap -build -d -gcj (-hardened) -ip28 -ip32r10k -libffi (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB