I believe that my program in the attached file is almost finished. When I try to run the program,there are two error message that pop up. The error are the following:

1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

1>c:\users\usr\documents\visual studio 2010\Projects\NEWLDIST\Debug\NEWLDIST.exe : fatal error LNK1120: 1 unresolved externals

If you happen to know what is missing or needs to be changed,I would greatly appreciate the advice.

This code is in C++ and I use MV C++ 2010 to run it

Recommended Answers

All 3 Replies

that does not seem to be the solution, It was already set to console in the first place

If you have read the entire thread you will find out that OP there actually changed it to Windows. I am not sure if this works though

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.