Re: [gentoo-user] gcc: error: 'nothrow' was not declared in this scope
On 3/7/09, Michael Sullivan msulli1...@gmail.com wrote: mich...@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 Have you tried to help the compiler find nothrow declaration by explicitly doing: #include new (Disclaimer: I'm no c++ guru, just googled for that.) -- Arttu V.
Re: [gentoo-user] gcc: error: 'nothrow' was not declared in this scope
On Sun, 2009-03-08 at 17:27 +0200, Arttu V. wrote: On 3/7/09, Michael Sullivan msulli1...@gmail.com wrote: mich...@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 Have you tried to help the compiler find nothrow declaration by explicitly doing: #include new (Disclaimer: I'm no c++ guru, just googled for that.) I put it in there, but it didn't help. Thanks for trying.
Re: [gentoo-user] gcc: error: 'nothrow' was not declared in this scope
On 3/8/09, Michael Sullivan msulli1...@gmail.com wrote: On Sun, 2009-03-08 at 17:27 +0200, Arttu V. wrote: On 3/7/09, Michael Sullivan msulli1...@gmail.com wrote: mich...@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 Have you tried to help the compiler find nothrow declaration by explicitly doing: #include new (Disclaimer: I'm no c++ guru, just googled for that.) I put it in there, but it didn't help. Thanks for trying. Another thing might be to try the -E option for gcc, and check the results to see if it actually correctly includes everything necessary when preprocessing. After that, I'm out of ideas, it could be your code or it could be the compiler. -- Arttu V.