Tech Support > Microsoft Windows > Development Resources > help..vc++
help..vc++
Posted by kalvin on December 19th, 2003


I am a newbie in win32 api and would like to ask something regarding
to vc++.When i compile my program using vc++,it allow me to run for
the first time but after i close the c++ and try to open again,it show
me some error message soemthing like

Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/chan.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.


Can anybody tell me how to fix this error?Thank you very much

Posted by Madhur on December 19th, 2003


Hi
i also have the same problem occasionally.
i do not know the cause but the solution.
go to project menu->settings, under the link tab, change a line which shows
"subsystem:console" to "subsystem:windows".


--
Winners dont do different things, they do things differently.

Madhur Ahuja
India
email : madhur<underscore>ahuja<at>yahoo<dot>com

kalvin <chanfoong2002@yahoo.com> wrote in message
news:ffc96d80.0312190027.286c7810@posting.google.c om...