Are you able to compile any UDF on your system at all? Or it the issue very specific to the code you are trying to compile?
Could you please take a simple test code from the Fluent UDF manual and try to compile it to see if that compiles? This might help us narrow down the issue. Right now, it could either be your code or that your compiler has not been installed properly on your machine.