[Linker error] undefined reference to `WinMain@16'
what is that??? and how can I fix it ?
I'm using Bloodshed Dev-C++ compiler, and I've included:
<windows.h>
<iostream>
<string>
[Linker error] undefined reference to `WinMain@16'
what is that??? and how can I fix it ?
I'm using Bloodshed Dev-C++ compiler, and I've included:
<windows.h>
<iostream>
<string>
Are you making a Windows-based (GUI) or console program? If the former is true, then make sure you have the WinMain entry-point function where you may have int main(...). If not, check your project settings in your IDE.
I'm making a simple console program where you kan move a symbol (the ASCII smiley guy - int 2 converted)around a black screen using the keyboard... I'll attach the .cpp file and the .h file
If you're making a console program, you probably won't need <windows.h>. Also, make sure that your program knows it's a console and not a windows app. Since it's looking for "WinMain," it must think that it is a windows app.