I\'m trying to build and run my C++ program in eclipse but it won\'t work. My program doesn\'t have a main function, but it does have WinMain and includes < windows.h >. I
Change your compiler to Visual C++ instead of MinGW GCC. Just copy your code to separate files. Then, you simply create a new project using Visual C++ as your tool-chain. Then you simple paste the files into the directory, and then run it.