Ask your own question, for FREE!
Computer Science 21 Online
OpenStudy (anonymous):

1>------ Rebuild All started: Project: week2, Configuration: Debug Win32 ------ 1> Test_Company.cpp 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\Users\Guest\Desktop\c++\C++WorkSpace\week2\Debug\week2.exe : fatal error LNK1120: 1 unresolved externals ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== //////////////////////////////////////////////This error is trying to tell me ?? All files are in right place, all codes and relationship-between files are correct. so whats wrong?

OpenStudy (rsmith6559):

My best guess would be a missing #include statement that affects the output ( CRTStartup == Cathode Ray Tube Startup? ).

OpenStudy (anonymous):

It would be helpful if you could post the .cpp file so we could see what that function is actually trying to reference.

OpenStudy (anonymous):

Thanks, seem to fix the error: But why would you include .cpp file in .h file when .h file already included .cpp file...............isn't that calling iteself, wen its already called. mm

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!