Wrox Programmer Forums
|
BOOK: Beginning Visual C++ 6
This is the forum to discuss the Wrox book Beginning Visual C++ 6 by Ivor Horton; ISBN: 9780764543883
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual C++ 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 28th, 2005, 06:23 AM
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error linker (LNK2001)TrialRun.cpp

Hello,
I tried to compiler/linker TrialRun.cpp ... and ...ERROR!!!


--------------------Configuration: Chap1_1 - Win32 Debug--------------------
Compiling...
TrialRun.cpp
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/Chap1_1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Chap1_1.exe - 2 error(s), 0 warning(s)



help me,

Thanks







 
Old April 8th, 2005, 10:36 AM
Registered User
 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Usually a Google search helps for most questions like this, since SO many other people have run into the same problem. For example, try a search like this:
http://www.google.com/search?q=unres...ol+_WinMain@16

Basically, the problem is that you must ensure your project was created as a Win32 Console application / project, not a Win32 application / project.

Jason Doucette
http://www.jasondoucette.com/
 
Old November 18th, 2005, 12:00 AM
Registered User
 
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Jason, I have a similar problem. I am rerunning the example given in Chapter 2 (pp. 64-65; 71-72) of Ivor Horton’s Introduction to Visual C++ 6.0. I HAVE to use Win32 Application from the projects list, as specified on page 53. ;)I have made a few fixes, as I have described in my two previous posts. posted elsewhere. :(I received the following similar error messages with my taskbuild:

----------------Configuration: SimpleApp - Win32 Debug----------------
Compiling...
SimpleApp.cpp
Linking...
:(MSVCRTD.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main
:(Debug/SimpleApp.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

SimpleApp.exe - 2 error(s), 0 warning(s)


Do you have any ideas, other that to using the Win32 Console application / project setting?
 
Old March 5th, 2010, 10:59 AM
Registered User
 
Join Date: Mar 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Agree with Jasond’s point of view





Similar Threads
Thread Thread Starter Forum Replies Last Post
Linker Error, Chapter 18 Spasticus BOOK: Ivor Horton's Beginning Visual C++ 2005 4 February 20th, 2008 05:04 AM
Linker error.help s_srivi1 Access VBA 4 November 12th, 2007 02:54 AM
Compiler linker error raja_welcomes Visual C++ 1 June 6th, 2007 11:17 AM
linker error while calling fortran from c rony C# 0 August 2nd, 2005 07:52 AM
linker error smukher Visual C++ 2 July 2nd, 2003 06:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.