What is an undefined reference/unresolved external symbol error and how do I fix it?



What is an undefined reference/unresolved external symbol error and how do I fix it?..

Answer / Mayank Kumar Dubey

An undefined reference or unresolved external symbol error occurs when the C++ compiler cannot find a function or variable that has been declared but not defined. To fix this error, you need to either define the missing entity or include the necessary header file that defines it.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Implement strncpy

3 Answers  


What are the various access specifiers in c++?

1 Answers  


a class that maintains a pointer to an object that is programatically accessible through the public interface is known as?

2 Answers   CTS,


what are the characteristics of Class Members in C++?

1 Answers  


What are the differences between public, private, and protected access?

12 Answers   IBM, Oracle, Wipro,


Can I uninstall microsoft c++ redistributable?

1 Answers  


Is dev c++ free?

1 Answers  


Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

1 Answers  


When does the c++ compiler create temporary variables?

1 Answers  


Explain container class.

1 Answers  


What is c++ try block?

1 Answers  


what is oops

2 Answers  


Categories