I have inherited some code that was built in Visual Studio 6.0. I am trying to build it in Visual Studio 2005. I referenced the white paper provided on the MSDN website about upgrading. However now, I am getting just one error in my code that is little weird. I find it hard to beleive that no one else has run into this. The code I am trying to build opens up a file and scans it to create a hex image based on the delimited data that is to be programmed to an EEProm. I am not getting an error in the code but in the standard C++ library that comes with Visual Studio. Please take a look. Any help is greatly appreciated.
2>c:\program files\microsoft visual studio 8\vc\include\fstream(675) : error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access private member declared in class 'std::basic_ios<_Elem,_Traits>'
2> with
2> [
2> _Elem=char,
2> _Traits=std::char_traits<char>
2> ]
2> c:\program files\microsoft visual studio 8\vc\include\ios(151) : see declaration of 'std::basic_ios<_Elem,_Traits>::basic_ios'
2> with
2> [
2> _Elem=char,
2> _Traits=std::char_traits<char>
2> ]
2> This diagnostic occurred in the compiler generated function 'std::basic_ifstream<_Elem,_Traits>::basic_ifstream(const std::basic_ifstream<_Elem,_Traits> &)'
2> with
2> [
2> _Elem=char,
2> _Traits=std::char_traits<char>
2> ]
Thanks,
CH
2>c:\program files\microsoft visual studio 8\vc\include\fstream(675) : error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access private member declared in class 'std::basic_ios<_Elem,_Traits>'
2> with
2> [
2> _Elem=char,
2> _Traits=std::char_traits<char>
2> ]
2> c:\program files\microsoft visual studio 8\vc\include\ios(151) : see declaration of 'std::basic_ios<_Elem,_Traits>::basic_ios'
2> with
2> [
2> _Elem=char,
2> _Traits=std::char_traits<char>
2> ]
2> This diagnostic occurred in the compiler generated function 'std::basic_ifstream<_Elem,_Traits>::basic_ifstream(const std::basic_ifstream<_Elem,_Traits> &)'
2> with
2> [
2> _Elem=char,
2> _Traits=std::char_traits<char>
2> ]
Thanks,
CH