LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-22-2006, 02:30 PM   #1
Millenniumman
Member
 
Registered: Apr 2006
Posts: 81

Rep: Reputation: 15
glibc messed up?


I am using CentOS. I get this error when compiling something. It seems to be a problem with glibc:

/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/memory:124: error: `nothrow' was not declared in this scope

Am I doing something wrong or is glibc? What would be the easiest way to fix glibc if it is broken?
 
Old 12-22-2006, 02:40 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
That's unlikely a glibc error, looking at the location of the
include ... glibc is not a c++ thing. And with that single line
the problem is hard to diagnose, do you have more info for us?
What are you compiling, what are the let's say +/- 30 lines
around your actual error message?


Cheers,
Tink
 
Old 12-23-2006, 11:43 AM   #3
Millenniumman
Member
 
Registered: Apr 2006
Posts: 81

Original Poster
Rep: Reputation: 15
The code is just an "#include <string>", which then includes memory. Could something in my environment be causing problems with nothrow ?

Here is the full error:
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/memory: In function `std:air<_Tp*, ptrdiff_t> std::__get_temporary_buffer(ptrdiff_t, _Tp*)':
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/memory:84: error: `nothrow' was not declared in this scope
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/memory: In function `void std::return_temporary_buffer(_Tp*)':
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/memory:124: error: `nothrow' was not declared in this scope
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
Compiling glibc-2.3.5 or glibc 2.3.5-r1 on Gentoo fails ghrellin Linux - Software 2 07-19-2005 01:01 AM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 07:26 AM
ncsd, glibc, and glibc-common conflicts during LAMP install beaker911 Linux - Software 0 12-30-2004 02:31 PM
glibc 2.3.2 => glibc 2.3.3 causes bash & syslog issues natetheros Red Hat 1 09-27-2004 01:35 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration