Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

scenario is when i\'m trying to build a project in consoleapplication after i co

ID: 3616008 • Letter: S

Question

scenario is when i'm trying to build a project in consoleapplication after i compile it, run it and saved it the next day oreverytime i close my project and re-opened it the error keeps onshowing.

//here is the error

nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved externalsymbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved externalsymbol __beginthreadex
libcd.lib(crt0.obj) : error LNK2001: unresolved external symbol_main
Debug/welcome3Dlg.exe : fatal error LNK1120: 3 unresolvedexternals
Error executing link.exe.

Explanation / Answer

It appears that you don't have a main function defined. When youopen your solution, does it properly load the project file, as wellas your source code files and headers? Also, I notice it is called welcome3Dlg.exe. Are you using dialogs?If so, you wouldn't want to use a console application, but aWindows application. However, that may be just a name.