LinuxQuestions.org
Help answer threads with 0 replies.
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 02-12-2006, 12:46 PM   #1
ofanan
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
compiler error: ‘alloc’ does not name a type


Hi!
for the code line
typedef std::__alloc raw_alloc;
I get the error:
‘__alloc’ in namespace ‘std’ does not name a type
My include files are:
#include <memory>
Actually, these code was well compiled on gcc-3.3.2, but now, on gcc-4.0.0, it fails.
By grep I found out that indeed __alloc appears in many files as a type (if I understand well the context), but I didn't succeed to grep a file in which there is "typedef" of it.
Actually, even when modifying the code line to:
typedef std::__alloc raw_alloc;
I get a similar error.
Thank you all very much in advance for helping!
 
Old 02-12-2006, 01:12 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 02-12-2006, 04:04 PM   #3
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Maybe you could explain:
what it is you want to do?
and why you are using std::__alloc?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
in gcc compiler error: parse error before string constsnt cynthia_thomas Linux - Networking 1 10-20-2005 01:29 AM
C++ compiler error Palamides Slackware 2 03-09-2005 06:09 AM
compiler error Ryan450 Linux - Software 1 03-05-2005 02:11 AM
Warning message about GdkColormap.alloc() salman Linux - General 0 07-08-2002 12:41 PM


All times are GMT -5. The time now is 11:03 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration