The compiler in my lab system has been upgraded to GNU g++ 4.3.0 and now I have problems linking my programs. Before this upgrade I was compiling and linking without problems using GNU g++ 4.1.2. My main problem is that I am receiving the following error when trying to build the final program:
undefined reference to `std::_List_base<float, std::allocator<float> >::_M_clear()'
does anybody have an idea of what this means in this stage?
Thank you for your reply, but it did not make a difference. I am puzzled, in some other forum somebody suggested that I should be sure that all the GNU gcc and libstdc++ were updated and then try again. Well, the problem still persists.
I've read that the default optimization for GCC is no longer -O1. Try listing it explicitly in your $(CFLAGS) to see if that has any effect. (There are reported optimization problems with -O2 in 4.3.0.)
Tired of trying to figure out the problem (changing compilers and checking the makefiles) I decided to switch to using vector instead of list and that solved the problem!. No errors. Perhaps, I missed something as to how to call the lists, but it worked before, so I am still puzzled by the error.