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?
My best guess would be a missing #include statement that affects the output ( CRTStartup == Cathode Ray Tube Startup? ).
It would be helpful if you could post the .cpp file so we could see what that function is actually trying to reference.
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
Join our real-time social learning platform and learn together with your friends!