MATLAB: Having a problem with MATLAB coder, can anyone help with error

coder

>> coder -build Untitled1.prj ??? Unknown compiler ''.
Error in ==> foo Line: 1 Column: 1 Code generation failed: Open error report.
I keep getting this error while using Matlab Coder. Currently I have matlab 2012a and visual studio 2010 Premium installed.
Can anyone guide me with a solution to this problem please?
Related Question