I am trying to compile the body of a class that I got from my e-book after designing the header file, but I am getting this error message:
[Linker error] c:/crossdev/src/mingw-w64-svn/mingw-w64-crt/crt/crt0_c.c:18: undefined reference to `WinMain@16'
file: C:\Users\Chuks Joe\Desktop\collect2.exe
Message:[Error] ld returned 1 exit status
The header file is in a separate file called dice.h and the class body in another separate file called called dice.cpp. The client program is in a separate file too called testdice.cpp.
How do I arrange these files and where do I put the .so file so that they can all be linked together for my program to run.
The compiler I am using is Dev-C++.