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 compile it into an executable and everything works fine, but when I click "run" nothing happens. When I drag the executable to my desktop and double click it it runs no problem. But I would like to be able to run it directly from eclipse.
I've done some research and already tried the following:
I made sure "PE Windows Parser" is checked in "Binary Parsers."
I made sure the working directory is where the executable is (workspace/projectname/Release).
I made sure MinGW is in the PATH (I couldn't find msys, but everything is compiling fine so I don't think this is the problem).
Any thoughts?