Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > BOOK: Beginning Visual C++ 6
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 28th, 2005, 05:23 AM
Registered User
 
Join Date: Jan 2005
Location: , , .
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







Reply With Quote
  #2 (permalink)  
Old April 8th, 2005, 10:36 AM
Registered User
 
Join Date: Apr 2005
Location: , , .
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/
Reply With Quote
  #3 (permalink)  
Old November 17th, 2005, 11:00 PM
Registered User
 
Join Date: Nov 2005
Location: Harlingen, Texas, USA.
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?
Reply With Quote
  #4 (permalink)  
Old March 5th, 2010, 09: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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 04:04 AM
Linker error.help s_srivi1 Access VBA 4 November 12th, 2007 01: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



All times are GMT -4. The time now is 01:10 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.