LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   'auto_ptr' is not a member of 'std' (https://www.linuxquestions.org/questions/programming-9/auto_ptr-is-not-a-member-of-std-846660/)

harishisnow 11-26-2010 03:15 AM

'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

JohnGraham 11-26-2010 03:28 AM

  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.

harishisnow 11-28-2010 11:13 PM

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

Regards,
Harish


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