| selenium (45) | |||
I just started to learn the window programming, and the following code is copied from this url http://msdn.microsoft.com/en-us/library/windows/desktop/ff381409%28v=vs.85%29.aspx But my compiler return the following error message: [Linker error] undefined reference to `WinMain@16' ld returned 1 exit status my c++ is 4.9.9.2, using Window 7 | |||
|
|
|||
| Moschops (5981) | ||
I guess what you actually mean is that you're using Dev-Cpp version 4.9.9.2, which is a very bad idea and something you should stop doing as soon as possible. It comes with an old, out-of-date C++ compiler and has various other problems. Anyway, your problem here is that you don't have a main or a WinMain, and your compiler wants one. http://stackoverflow.com/questions/5259714/undefined-reference-to-winmain16 The page you linked to contains a solution in the comments, but a better solution would be to get an up-to-date compiler and to start your Win32 coding with something like http://www.winprog.org/tutorial/ | ||
|
Last edited on
|
||