Hi , I am new to gcc and c++ programming so i am looking for help in this mailing list. I have following piece of C++ code void ALCload(FILE * infile) { istream *iptr; ifstream * ifptr; int fd = fileno(infile); ifptr = new ifstream(fd); iptr = ifptr; ALCload(iptr); return; } it used to compile fine with gcc version 2.96 but in new gcc 3.2.3 it generates following errors functions.cc: In function `void ALCload(FILE*)': functions.cc:188: invalid conversion from `int' to `const char*' functions.cc:188: initializing argument 1 of `std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]' functions.cc: In function `ALobject* ALLcryptdecrypt(ALobject*, ALboolean)': functions.cc:1626: `nocreate' is not a member of type `std::basic_ios<char, std::char_traits<char> >' /usr/include/c++/3.2.3/fstream:191: `int std::basic_filebuf<_CharT, _Traits>::sync() [with _CharT = char, _Traits = std::char_traits<char>]' is protected functions.cc:1636: within this context /usr/include/c++/3.2.3/fstream:191: `int std::basic_filebuf<_CharT, _Traits>::sync() [with _CharT = char, _Traits = std::char_traits<char>]' is protected functions.cc:1653: within this context /usr/include/c++/3.2.3/fstream:191: `int std::basic_filebuf<_CharT, _Traits>::sync() [with _CharT = char, _Traits = std::char_traits<char>]' is protected functions.cc:1668: within this context make: *** [functions.o] Error 1 I was wondering if anyone could help !! Thanks, Ashish