Problems Linking/Compiling with GNU g++ 4.3.0

Dear All,

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?
You need to delete all old object files and completely recompile your programs.

Does that help?
Dear Duoas,

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.

Cheers
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.)

http://n2.nabble.com/Incompatibility-with-gcc-4.3.0---td658111.html

Hope this helps.
Last edited on
Dear All,

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.

Best
Topic archived. No new replies allowed.