The only error you mentioned was from main. That has been explained. You have not asked any other complete question, nor given any information, nor stated your expectations and how they are not being met. Please read the entire "Before you make a query" thread.

Thanks, I have corrected the code by changing void main () to Int main (), but it is now generating Linker error..I mean it cannot link to the libaries...

I have compiled the code but there is a problem with the LINK...Is there any other way to create a link or use other libraries. I am using smile: smile.lib and this is usually used for Bayesian classifier...Is there any other libaries that I can use?