From: Michael Sullivan <msulli1355@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] gcc: error: 'nothrow' was not declared in this scope
Date: Sat, 07 Mar 2009 09:26:46 -0600 [thread overview]
Message-ID: <1236439606.15761.65.camel@camille.espersunited.com> (raw)
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
next reply other threads:[~2009-03-07 15:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-07 15:26 Michael Sullivan [this message]
2009-03-08 15:27 ` [gentoo-user] gcc: error: 'nothrow' was not declared in this scope Arttu V.
2009-03-08 15:48 ` Michael Sullivan
2009-03-08 16:56 ` Arttu V.
2009-03-08 16:50 ` [gentoo-user] " Nikos Chantziaras
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=1236439606.15761.65.camel@camille.espersunited.com \
--to=msulli1355@gmail.com \
--cc=gentoo-user@lists.gentoo.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox