Old version of gcc to enhance

When I try to use boost on an old Linux system, I get a message:

The compiler is not configured - reconfigure

My gcc version:

gcc version 2.9-gnupro-99r1

And in the boost gcc.hpp file, I see:

// versions check:
// we don't know gcc prior to version 2.90:
#if (__GNUC__ == 2) && (__GNUC_MINOR__ < 90)
#  error "Compiler not configured - please reconfigure"
#endif

So, are gcc 2.9 and 2.90 really the same? If so - can I just update gcc.hpp? And if not, how can I use boost?


EDIT:

I really tried to change (__GNUC_MINOR__ < 90)to (__GNUC_MINOR__ < 9). It seems that 2.9 and 2.90 do not match since now I am getting compilation errors.

The errors seem to be related to the fact that this compiler does not support \line extension characters in preprocessor macros. These line breaks are used by markup in many places.

+3
2

, . , .

" Boost" : http://sourceforge.net/projects/boost/files/

!

PS: , , , ( )

+2

C ++ \in , . , Boost 2.9x ( ?) - ? GCC 4.5, .

, Boost.

+2

Source: https://habr.com/ru/post/1759095/


All Articles