I make a first file : something.h where I define a class and its functions .
Then there is the implementation file : something.cpp where I write the code for each function .
Finally , it is the int main () .
My problem is with the implementation file which I am unable to compile . Instead there is a message : [linker error] undefined reference to 'WinMain@16' and Id returned 1 exit status .
When I try to run the int main () file , it doesn't work .
But if I put the implementation file directly in the first file ( something.h ), it works fine .
Do you know what's wrong with the implementation file ?