Archived

This topic is now archived and is closed to further replies.

unresolved external symbol _main

This topic is 5311 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

--------------------Configuration: Cpp1 - Win32 Debug-------------------- Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/Cpp1.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. Cpp1.exe - 2 error(s), 0 warning(s) what does that mean?! i get that in many sources that i try?

Share this post


Link to post
Share on other sites
main() is the entry point for your program. The program will exectute main() as the first step. No main(), the program is lost, as it doesn''t know where to start. you can add parameters to main, and return values, but that''s relatively irrelevant for newbies. After, parameters might become useful, and the main() returned value would be useful if you started your application from inside another console application.

WinMain() is the same, but for Win32 applications.

Share this post


Link to post
Share on other sites