Error when linking exe

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?
 
S

Sin

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top