[Opentnl-general] how to build tnl on gcc 4.2.1?
Brought to you by:
mark_frohnmayer,
s_alanet
From: chen q. <gre...@gm...> - 2009-01-03 15:11:08
|
the error is: g++ -g -DTNL_DEBUG -DTNL_ENABLE_LOGGING -I../libtomcrypt -c assert.cpp In file included from tnl.h:35, from assert.cpp:27: tnlTypes.h:299:8: error: #error "TNL: Unsupported version of GCC (see tnlMethodDispatch.cpp)" In file included from tnlUDP.h:35, from tnl.h:51, from assert.cpp:27: tnlVector.h: In member function 'T& TNL::Vector<T>::front()': tnlVector.h:302: error: there are no arguments to 'begin' that depend on a template parameter, so a declaration of 'begin' must be available tnlVector.h:302: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) tnlVector.h: In member function 'const T& TNL::Vector<T>::front() const': tnlVector.h:307: error: there are no arguments to 'begin' that depend on a template parameter, so a declaration of 'begin' must be available tnlVector.h: In member function 'T& TNL::Vector<T>::back()': tnlVector.h:312: error: there are no arguments to 'end' that depend on a template parameter, so a declaration of 'end' must be available tnlVector.h: In member function 'const T& TNL::Vector<T>::back() const': tnlVector.h:317: error: there are no arguments to 'end' that depend on a template parameter, so a declaration of 'end' must be available how to solve it? thinks very much! |