Prije sam imao Borland C++ Builder 6, a sad imam Visual C++ 6.0 i ne znam sto
treba namjestiti, pri pokusaja pokreteanja ovog programa javlja se greska.
prog:
#include <windows.h>
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
MessageBox(NULL,"Hello, Windows 98","Hello World",0);
return 0;
}
greska:
Compiling...
d.cpp
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/d.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
d.exe - 2 error(s), 0 warning(s)