For those that want to compile your plugins on Linux, you probably have a newer version of gcc than what Autodesk recommends. For Maya 2015, the documentation says to use gcc 4.1.2. This was released back in 2007, so it’s not all that easy to install and get working from an older build. This means you have to build it yourself from the source code. I ran into several problems along the way, no surprise, and wanted to write up how to do this with hopefully less headaches and time wasted as I did.

Take a look at the How To page I made and please contact me if you think I made a mistake or forgot something, but if you ran into an error, try searching online first as I am not an expert on Linux compilers. I am running Fedora 20, but other distributions may only need minor changes and naming.

So go read my How To Build GCC 4.1.2 on Fedora Linux for Maya 2015