Newbie here. I made a project in visual studio 2010, and it works perfectly. Now i need to compile and run this code in a machine that runs ubuntu. Is there some export/import method, or how does it work (of course assuming such thing is possible).

What i am thinking is making a makefile in visual studio, then take the code and compile it in ubuntu? does such thing make sense? 

Thank you in advance.