Error when linking exe

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using Visual Developer Studio V5.0 on an XP workstation and am getting the following error when ever I try to link ANY type of exe:
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Can anyone help?
 
I am using Visual Developer Studio V5.0 on an XP workstation and am
getting the following error when ever I try to link ANY type of exe:
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Can anyone help?

I suppose your main looks like one of these:

void main(void)
int main(void)
int main(int argc, char *argv[])
void main(int argc, char *argv[])

???

If so then you should know that Windows (ie : non-console) applications need
to use WinMain (see MSDN for params and return type).

Alex.
 
Back
Top