LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-26-2010, 03:15 AM   #1
harishisnow
LQ Newbie
 
Registered: Nov 2010
Location: bangalore, india
Posts: 17

Rep: Reputation: 0
'auto_ptr' is not a member of 'std'


Hello,
I am getting the following error:
'auto_ptr' is not a member of 'std'

This was working fine in gcc version 4.1.2 20080704 (Red Hat 4.1.2-48).
After upgrading to gcc version 4.4.4 (GCC), it is NOT working.
Please suggest a solution for the above problem.

Regards,
Harish
 
Old 11-26-2010, 03:28 AM   #2
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 139Reputation: 139
  1. Is this the first (very very first) error you get?
  2. You have to #include <memory> - another library may have included this in a round-about way that it doesn't any more, so make sure you use this in the file itself.
 
1 members found this post helpful.
Old 11-28-2010, 11:13 PM   #3
harishisnow
LQ Newbie
 
Registered: Nov 2010
Location: bangalore, india
Posts: 17

Original Poster
Rep: Reputation: 0
Smile

Thanks a lot for your response..:-)
It works now when the library mentioned was included.

Regards,
Harish
 
  


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
Template algorithm for std::vector and std::string CartmanYO Programming 4 09-08-2010 09:56 AM
error: ‘libintl_snprintf’ is not a member of ‘std’ make: *** [image.o] Error 1 mmateen Linux - Hardware 0 08-13-2009 11:47 AM
LQ member progress status from member to senior member............. emailssent LQ Suggestions & Feedback 3 10-11-2004 01:31 PM

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

All times are GMT -5. The time now is 02:12 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