From: Jason L. <jl...@me...> - 2003-04-14 13:28:16
|
I think gcc 3+ is less backwards compatible with its header files. Mainly I have to go through the source and make sure every time I use a standard template library class I qualify it using the std namespace. We're currently using 2.95 because that's what Gentoo was using when we built our computers. Switching would require recompiling all of our dependent libraries... libsigc++, glibmm, gtkmm, Xerces, etc. I fixed the error that you mentioned in your email. I wsa able to verify that it compiles with gcc 3.2, but I can only assume it will correctly link against other libraries compiled with gcc 3+. Jason Index: src/libconfig4gnu/BackendHelper.cc =================================================================== RCS file: /cvsroot/config4gnu/config4gnu/src/libconfig4gnu/BackendHelper.cc,v retrieving revision 1.10 diff -u -p -r1.10 BackendHelper.cc --- src/libconfig4gnu/BackendHelper.cc 11 Apr 2003 14:35:14 -0000 1.10 +++ src/libconfig4gnu/BackendHelper.cc 14 Apr 2003 13:23:50 -0000 @@ -56,9 +56,9 @@ Cfg::load_config_file(std::string filena void Cfg::save_config_file(std::string output, std::string filename) { - ofstream file; + std::ofstream file; filename = rewrite_filename(filename); - file.open(filename.c_str(), ios::out); + file.open(filename.c_str(), std::ios::out); assert(file.is_open()); file << output; |