-
Error
I have a problem to compile my programm. I dont know what is wrong with it. This is the error message i get
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/SlideShow.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Can anyone help me? Thankx
-
I don't really know, and this probably isn't it, but did you include windows.h?
-
The linker cannot find an object that contains the method CRT uses to call your main. You may be trying to build a Console app using Windows application framework?! I suspect you may have picked/changed the project flags to a target which is not implemented by you.
Bottom line is WinMain() is not found by the linker.
-
Yeah, if you chose "Win32 Application" from the new projects dialog then you have to have WinMain() as you main function. If you're doing console it's just main() but you have to specify "Win32 Console Application" in the new project settings dialog. You can also change this in your project settings under the link tab by changing /subsystem:windows to /subsystem:console in the project options box.
-
I did that when I first started... I was being a wise guy and made a windows app thinking that I could do cout << "Wasup" and it make a window :o
Oh boy...
-
thank you guys, i found my problem!!!!