Newbie in Linux. I have a linux developer machine at my organization which has a compiler which is old.
gcc --version gives the following
gcc (GCC) 4.4.7 ...
I have a small piece of code that came from a different machine that uses a lot of C++11 features. Obviously, compiling it in my current linux box gives a lot of errors.
Compiler upgrade in the linux box is completely out of question due to legacy issues.
So I have two options,
- rewrite everything to suit C++98 / 03 standards, or
- which is a question
Can I have an updated version the gcc compiler copied within my local directory and use it to compile my code within that folder ?
It shouldn't affect the compilation of my Organizational code outside this folder which uses the older gcc compiler that comes with Linux.
I haven't researched anything much unless this is possible. Basically I wouldn't want to touch any of my global settings lest it would break my project.
But I would like to have a folder within my local path and work with an updated compiler to compile and test my code from another machine.