I have a friend sorting function defined in my class and the compiler complains it has not been declared. It works perfectly on a i686-redhat-linux-gnu with gcc 4.0.2.
The compiler has been installed from the RPM distributed with Fedora Core 5. The command line used is the following: g++ -Wall -o test -save-temps sorting.cxx and the compiler ouput is sorting.cxx: In member function void MyVect::sortClass(): sorting.cxx:12: error: cmp was not declared in this scope I will try to post the *i* files. Regards, Antonio -- Summary: Not finding pointer to function Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: antonio dot bulgheroni at gmail dot com GCC build triplet: x86_64-redhat-linux-gnu GCC host triplet: x86_64-redhat-linux-gnu GCC target triplet: x86_64-redhat-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30279