On Mon, 2009-03-09 at 11:18 -0500, david.hagood@xxxxxxxxx wrote: > > On Sun, 2009-03-08 at 22:27 -0700, Ian Lance Taylor wrote: > > michael@camille OurRPG $ gcc -O2 -W -Wall -pedantic `sdl-config > > --cflags` -c character.cpp > > At a guess, I think it is being compiled as C, not C++ - try using this > command line: > > g++ O2 -W -Wall -pedantic `sdl-config --cflags` -c character.cpp > > to force C++ compilation. michael@camille OurRPG $ g++ O2 -W -Wall -pedantic `sdl-config --cflags` -c character.cpp g++: O2: No such file or directory /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 michael@camille OurRPG $ g++ -O2 -W -Wall -pedantic `sdl-config --cflags` -c character.cpp /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