GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  C++
Go To First  |  Previous Question  |  Next Question 
 C++  |  Question 138 of 203    Print  
What errors are caught at compile time vs link time?

  
Total Answers and Comments: 1 Last Update: July 04, 2007     Asked by: SR 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 04, 2007 02:30:32   #1  
Nagaraju        

RE: What errors are caught at compile time vs link tim...
Any mistakes like syntax error using a variable which is not declared these will be compile time errors. If any Dll is missing in the program that will come under linking error.
If you have multiple main() functions in different files in the same project and all are included in the build then you will get linker error.

 
Is this answer useful? Yes | No

 Related Questions

 Classes and objects are separate but related concepts. Every object belongs to a class and every class contains one or more related objects.  Ø      A Class 
Latest Answer : Class is a combination of data member & member function where object is used for calling function In class we declare In object we call ...

 The idea behind inline functions is to insert the code of a called function at the point where the function is called. If done carefully, this can improve the application's performance in exchange 
Latest Answer : inline function is a function which extends the code when it is invoked. Otherwise is skip the code. ...

Virtual destructors: If an object (with a non-virtual destructor) is destroyed explicitly by applying the delete operator to a base-class pointer to the object, the base-class destructor function (matching 
Latest Answer : Virtual constructor is not build-in C++ feature but it doesn't mean its not used by devs in code and in conversations. There are many other things that doesn't exist in particular language yet, people find ways around to solve it (SingleTon, Virtual Constructor, ...

Write a program to dynamically create a matrix( no of rows and columns wud be provided by user at run time). Then ask a user to input elements and the nprint those elements.

Latest Answer : Any mistakes like syntax error, using a variable which is not declared these will be compile time errors. If any Dll is missing in the program that will come under linking error. If you have multiple main() functions in different files in the same project ...
Read Answers (1) | Asked by : SR

dynamic_cast checks for datatype at runtime but static_cast checks at compilation. Is this the only diffrence b/w them or is there anything else? at the time of programming which shud we prefer to call. 
Latest Answer : static_cast is used for all conversions that are well defined.Like float to int. double to int etc.dynamic_cast is used for type-safe downcasting. For this one must be working with a truly polymorphic hierarchy.(i.e with virtual functions).downcasting ...

Can Virtual destructor is used in derived classes?What is the answer to the following question?Class Base {Public:Base();Virtual ~Base();};Class Derived : protected Base {Public:Virtual ~Derived();};Int 
Latest Answer : Choice 4 A pointer to a Base class cannot point to an instance of a Derived class. class cannot point to an instance of a Derived class. This the the only truthful answer.  ...
Read Answers (5) | Asked by : vvadan

Hi,Iam very much new to programming and C++please help meI have an application that uses socket++ classes on Unix (AIX) environmentI have included #include in two of my .cpp filesand I have socket++ source 
Latest Answer : hi,Does the environment variable PATH contain the path of the folder in which the header files are present??If not, then either modify the PATH variable, or use -I option to specify the location of header files.eg. cc -I$HEADER_FILES_PATH -o myProgram ...
Read Answers (1) | Asked by : vvadan

class ABC { public: ABC(int i = 0) { val = i;} int GetVal() {return val;} void SetVal(int i) {val = i;} private: int val;}void DoubleABC(ABC& 
Latest Answer : The class has a missing semi-colon ';' following the closing brace. So the answer should be: E: None of the above ...

class ABC { public: ABC(int i = 0) { val = i;} int GetVal() {return val;} void SetVal(int i) {val = i;} private: int val;};void DoubleABC(ABC& 
Latest Answer : There is no problem ...


 Sponsored Links

 
Related Articles

High Level Data Link Control (HDLC)

High Level Data Link Control HDLC The High Level Data Link Control protocol was developed by the International Organization for Standardization ISO It is used for switched and non switched networks and is a bit oriented architecture The High Level Data Link Control has been accepted and used widel
 

Synchronous Data Link Control (SDLC)

Synchronous Data Link Control SDLC The SDLC or the Synchronous Data Link Control was first developed by IBM It is basically a linked layer protocol which can be used with systems network architecture or the SNA environment In this system all the functions in a network can be defined and slotted into
 

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

What is Data Collection Time

Modern Relational Database Management Systems can be configured to collect data at certain events.  In a business, some of the events are sale, order, deposit, pay, request and many more. Events are really business activities in a company.  Big companies, in order to gain competiti
 

How to develop compile and run a C program

The steps involved in building a C program are: 1. First program is created by using any text editor and the file is stored with extension as .c 2. Next the program is compiled. There are many compilers available like GNU C compiler called as gcc, Sun compiler, Borland compiler which is pop
 

SQL Programming

SQL Programming Overview Anybody who has done something for a long time has probably wanted to change how things work at some point or another. A worker at a mill might have found a more efficient way of cutting logs, or a mathematics teacher might have had a hand in changing a school’s al
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

WinRunner Programming Concepts

If you want to create WinRunner scripts that are highly efficient, there are important programming concepts that you will want to become familiar with. Understanding these concepts will provide you with a large number of key benefits. In addition to understanding these concepts, you must also learn
 

The Right Time To Make A Career Change

Changing careers is one of the most crucial stages in one’s career life. There are employees who get into the career change phase earlier than other employees. But no matter how an employee enjoys his or her current career, there would come a time that an employee would think of shifting c
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape