I have a piece of code that is currently compiling on Fedora 13 (I have it on a VM). I created a new VM using Fedora 29. The issue is that F29 has GCC v8.1 whereas the F13 has GCC v4.4.4 because of which the code is not compiling on F29. I found that using update-alternatives I can install multiple GCC versions. However, I am not able to install gcc4. Does anyone know, how to do it? Or, shall I use some other Fedora version (since the F13 doesn't allow me to install Virtual Box extensions).
I am using Virtual Box 6. I have no idea as I am new to all this.