#include <iostream.h>
int main()
{
cout<<"Hello world!";
return 0;
}
it works fine, when i make a Win32 concole application, but when its jsut a win32 application it compiles fine but when i run it and make it an exe it gives me these errors
--------------------Configuration: Tset - Win32 Debug--------------------
Compiling...
test.cpp
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/Tset.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
can anyone help?
It's trying to compile a Windows application instead of a dos one. When you create a project you need to make a Win32 console app instead of a Win32 application.