Troubleshooting Compiler Errors

Slides:



Advertisements
Similar presentations
Nov 10, Fall 2006IAT 8001 Debugging. Nov 10, Fall 2006IAT 8002 How do I know my program is broken?  Compiler Errors –easy to fix!  Runtime Exceptions.
Advertisements

Presentation & Discussion on Testing and Debugging Share your experience Learn from each other.
Cameron McColl Developer Visual Basic Team.  VB Compiler Architecture Overview  Best Practices  Known Issues/Common pitfalls  Improvements made for.
Test-Driven Development With Visual Studio 2005 Erno de Weerd Info Support.
Jun 16, 2014IAT 2651 Debugging. Dialectical Materialism  Dialectical materialism is a strand of Marxism, synthesizing Hegel's dialectics, which proposes.
DEBUGGING CHAPTER Topics  Getting Started with Debugging  Types of Bugs –Compile-Time Bugs –Bugs Attaching Scripts –Runtime Errors  Stepping.
C++ Basics Structure of a Program. C++ Source Code Plain text file Typical file extension .CPP Must compile the C++ source code without errors before.
Algebra 1A Vocabulary 1-2 Part 2
I LEARNED TO KNIT. Why Knitting? I’ve wanted to learn how to knit for a very long time now. My Grandma passed away before she could teach. I never took.
Introduction to Exception Handling and Defensive Programming.
C++ LANGUAGE TUTORIAL LESSON 1 –WRITING YOUR FIRST PROGRAM.
Department of Electronic & Electrical Engineering Introduction to C - The Development cycle. Why C? The development cycle. Using Visual Studio ? A simple.
CS116 COMPILER ERRORS George Koutsogiannakis 1. How to work with compiler Errors The Compiler provide error messages to help you debug your code. The.
By Anand George SourceLens.org Copyright. All rights reserved. Content Owner - Meera R (meera at sourcelens.org)
By Anand George SourceLens.org Copyright. All rights reserved. Content Owner - Meera R (meera at sourcelens.org)
If you find that your HP Printer no longer works as expected, it will likely display an error message. This kind of error messages helps you in repairing.
Copyright © 2014 Pearson Addison-Wesley. All rights reserved. 4 Simple Flow of Control.
JavaScript: Conditionals contd.
TIME & ATTENDANCE ADP WORK FORCE NOW
Best Practices for Workflow, Dialogs and Business Process Flows
Chapter 10 Programming Fundamentals with JavaScript
Great way to learn is by example so fire up Visual Studios C (at home make sure you custom install with C++ - no longer default) by Deborah R. Fowler.
An Introduction to Programming with C++ Sixth Edition
CS161 Introduction to Computer Science
CSE341: Programming Languages Lecture 15 Macros
Algebra 5. Double Brackets
Few Common HP LaserJet Printer Error Messages
Chapter 5 Conclusion CIS 61.
How to accelerate sales in a café restaurant
Errors Lecture 6 Hartmut Kaiser
Mr Barton’s Maths Notes
The Scientific method What’s the difference between a theory & a law?
CSE341: Programming Languages Lecture 15 Macros
CSE 341: Programming Languages Section 1
The Little Crab Scenario
Chapter 10 Programming Fundamentals with JavaScript
CSE341: Programming Languages Section 1
DIFD 351 Mr. John Rouda
Area What is the area of these shapes 8 x x2 x x 8x x x 8.
Introduction to Computer Programming
We’re moving on to more recap from other programming languages
IPC144 Introduction to Programming Using C Week 3 – Lesson 2
Coding Concepts (Standards and Testing)
CSE341: Programming Languages Lecture 15 Macros
Testing and Repetition
CISC124 Labs start this week in JEFF 155. Fall 2018
Debugging “Why you were up till 2AM”
CSE341: Programming Languages Lecture 15 Macros
CMPE212 – Reminders The other four assignments are now posted.
IPC144 Introduction to Programming Using C Week 4 – Lesson 1
Tonga Institute of Higher Education IT 141: Information Systems
CSE341: Programming Languages Lecture 15 Macros
An Introduction to Debugging
CISC101 Reminders Assignment 3 due next Friday. Winter 2019
C Programming Language
Tonga Institute of Higher Education IT 141: Information Systems
Running a Java Program using Blue Jay.
Building Blocks of C Programming Language
Be able to expand brackets and simplify the expressions that arise
Hello World C By Anand George.
IPC144 Introduction to Programming Using C Week 2 – Lesson 2
Be able to expand brackets and simplify the expressions that arise
Hello World Program In Visual Studio and Debugging
CSE341: Programming Languages Lecture 15 Macros
Modern Collections Classes & Generics
CSE341: Programming Languages Lecture 15 Macros
Jamie Cool Program Manager Microsoft
Selamat Datang di “Programming Essentials in Python”
Presentation transcript:

Troubleshooting Compiler Errors By Anand George

First things first. Have you compared your program with a working sample? First thing to do if you are too new C programming. Always have a reference program until you are comfortable with the syntax in general. Some initial compile errors should never let you down.

Follow my steps when you deal with visual studio. Also when you start your project in visual studio always follow my steps. Visual studio is complicated and easy to loose track if you do some thing else. Do not delete the default #include “stdafx.h” unless instructed. Always start with building a hello world to make sure the environment is correct as well as something called build of precompiled header in visual studio.

First check. Check you code very carefully for below items for any kind of compiler errors as they are very much possible for beginners. Also below reasons may force the complier to point to some wrong lines. Missing any ‘{` or `}` or `(` or `)` or `;` The variables and functions you are using is declared before using ? Name you typed is correct. C IS case sensitive.

Demo Common error Missing braces, parentheses and semi colon; Missing declaration function, variable, type error for variable names.

Compiler Error code. Search with the error you are getting. Remove the custom variable name in the error before you search. If you are beginner you may not completely understand the forum or msdn reason for the error again that should not let you down. But try make changes according to it and see if helps. May be a bit of trial and error is needed in the beginning.

Demo Search with compiler error. Passing a wrong type to a function.

Conclusion Compiler errors can be cryptic to begin with. Stick with simple programs to begin with. Make sure you use all possible online help. It can be a bit tiring and make sure you don’t loose sight and try hard.

Thank you.