Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I fix unresolved external _main?

Linker

How do I fix unresolved external _main?

by  thiefmaster  Posted    (Edited  )
1. Type your main program and save the file in a directory.
2. Create the project file in Visual C++.
a. File. New...
b. Win32 Application. Click Next.
c. A new window will open with properties for your new project. Select "An empty project" and click finish.
3. Add your program file to your new project. Either right-click on the source code and choose Insert File into Project, or add it through the Project Menu. Choose Add to Project and then Files...
4. After adding the file, compile and build the application and you shouldn't have a problem with an unresolved external _main error.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top