public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] gcc:  error: 'nothrow' was not declared in this scope
@ 2009-03-07 15:26 Michael Sullivan
  2009-03-08 15:27 ` Arttu V.
  2009-03-08 16:50 ` [gentoo-user] " Nikos Chantziaras
  0 siblings, 2 replies; 5+ messages in thread
From: Michael Sullivan @ 2009-03-07 15:26 UTC (permalink / raw
  To: gentoo-user

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






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-03-08 16:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-07 15:26 [gentoo-user] gcc: error: 'nothrow' was not declared in this scope Michael Sullivan
2009-03-08 15:27 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox