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

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2010 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 June 30th, 2012, 11:10 AM
Authorized User
 
Join Date: May 2012
Posts: 66
Thanks: 0
Thanked 4 Times in 4 Posts
Default What do compiler errors mean?

Are you new to programming or Visual C++? Have you ever wondered what the compiler errors in the output pane mean? If you answered yes to either of these questions, I wrote this for you.

When you build a program, you hope to see this in the output pane.
Code:
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
If you see 0 succeeded and some number other than zero (0) failed, there is an error in the code which caused the program to fail to compile. Scrolling up to the first error listed you will find a description and an error code in the general format of Cxxxx, where xxxx is a number. (Ignore errors listed after the first one because subsequent errors may be caused by the first one.)

Many times the description provides enough information to make corrections. If not, the meaning of the error code is necessary. Included here are four options which can be used to to obtain information on the error code.
  1. Use the Help feature of the IDE.
    • Click Help.
    • Click View Help.
    • Using the same technique that is used to expand folders in Windows Explorer (not Internet Explorer), expand the listings in the left pane as follows to create the path to the error you need information about.
      Code:
      Visual Studio 2010> Visual Studio> Visual Studio Languages> Visual C++> Building a C/C++ Program> C/C++ Building Reference> C/C++ Build Errors
    • In the left pane, find the group which contains your error number.
    • Click on it.
    • In the right pane, click on your error number. (Scroll if necessary to find your number.)
    • Click on your error number to display information.
  2. If you have a browser open, one way is to paste or type msdn.microsoft.com/en-us/library/8x5x43k7 into the address bar of your browser.
    • Look in the left pane to find the group which contains your error number.
    • Click on it.
    • In the right pane, click on your error number. (Scroll if necessary to find your number.)
    • Click on your error number to display information.
  3. Google the compiler error. I am not real fond of this option. The very nature of a Google serach will give many hits. Many of them will not give you a clear description of your error. You must be very specific in the wording of your search query to obtain the information which will be helpful.
  4. The last method I will discuss here is the one I prefer. I am probably in a minority in the use of this method; therefore, I am giving my reasoning for using this method. I use my laptop exclusively for my programming tasks. I am not always where I have a secure Internet connection available. Rather than using a questionable Internet connection, I have downloaded the Help files to my computer. I use these files to find any Help articles I need. I use the same path as listed above to access error code information. The steps to download the files is fairly intuitive. I will provide help upon request to anyone who wishes to receive instructions.

I hope you find this helpful.

drpepper





Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiler errors - Example on pg. 347-349 yoav_zohar BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4 1 December 31st, 2009 02:00 PM
Compiler Romaunt V. Intro Programming 2 October 18th, 2008 06:27 AM
Can't get errors to display with <html:errors> michaeldill JSP Basics 0 August 2nd, 2004 01:47 PM
For all who need a C/C++ compiler... Ammiel C++ Programming 1 July 17th, 2003 01:42 PM
Errors Errors DB Errors Ljhopkins VS.NET 2002/2003 0 July 15th, 2003 12:42 PM





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