Archived

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

Una

unresolved external symbol _main

Recommended Posts

Una    122
--------------------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
oliii    2196
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