public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arttu V." <arttuv69@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] gcc: error: 'nothrow' was not declared in this  scope
Date: Sun, 8 Mar 2009 18:56:23 +0200	[thread overview]
Message-ID: <fecdbac60903080956v1dd45ad3l2e505f4e2529fa9e@mail.gmail.com> (raw)
In-Reply-To: <1236527339.15761.97.camel@camille.espersunited.com>

On 3/8/09, Michael Sullivan <msulli1355@gmail.com> wrote:
> On Sun, 2009-03-08 at 17:27 +0200, Arttu V. wrote:
>> On 3/7/09, Michael Sullivan <msulli1355@gmail.com> wrote:
>> > 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
>>
>> 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.



  reply	other threads:[~2009-03-08 16:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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. [this message]
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=fecdbac60903080956v1dd45ad3l2e505f4e2529fa9e@mail.gmail.com \
    --to=arttuv69@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