1 |
I've wrote a program, and when I compile it gcc balks: |
2 |
|
3 |
michael@camille OurRPG $ make |
4 |
g++ -O2 -W -Wall -pedantic `sdl-config --cflags` -c draw.cpp |
5 |
enemyparty.o allyparty.o |
6 |
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory: In function |
7 |
'std::pair<_Tp*, int> std::__get_temporary_buffer(ptrdiff_t, _Tp*)': |
8 |
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory:83: error: |
9 |
'nothrow' was not declared in this scope |
10 |
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory: In function |
11 |
'void std::return_temporary_buffer(_Tp*)': |
12 |
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory:123: error: |
13 |
'nothrow' was not declared in this scope |
14 |
party.h: At global scope: |
15 |
party.h:7: warning: 'class Party' has virtual functions but non-virtual |
16 |
destructor |
17 |
allyparty.h:9: warning: 'class AllyParty' has virtual functions but |
18 |
non-virtual destructor |
19 |
enemyparty.h:8: warning: 'class EnemyParty' has virtual functions but |
20 |
non-virtual destructor |
21 |
draw.cpp: In member function 'void Draw::Init()': |
22 |
draw.cpp:36: warning: missing initializer for member 'SDL_Color::unused' |
23 |
draw.cpp:37: warning: missing initializer for member 'SDL_Color::unused' |
24 |
draw.cpp: At global scope: |
25 |
draw.cpp:84: warning: unused parameter 'state' |
26 |
make: *** [draw.o] Error 1 |
27 |
|
28 |
Should I report this as a bug, or is there a way I can fix it? I'm |
29 |
using: |
30 |
|
31 |
camille local # emerge -pv gcc |
32 |
|
33 |
These are the packages that would be merged, in order: |
34 |
|
35 |
Calculating dependencies... done! |
36 |
[ebuild R ] sys-devel/gcc-4.1.2 USE="doc fortran gtk mudflap nls |
37 |
vanilla (-altivec) -bootstrap -build -d -gcj (-hardened) -ip28 -ip32r10k |
38 |
-libffi (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ |
39 |
-objc-gc -test" 0 kB |
40 |
|
41 |
Total: 1 package (1 reinstall), Size of downloads: 0 kB |