fatal error LNK1120: 1 unresolved externals in C
void printStd(Student *std) -> This is what you have declared.
void printSt(Student *std) -> This is the function name you wrote
"unresolved external symbol "void __cdecl printStd" The compiler is telling you it can't find any function named printStd which you have decalred.
Visual C fatal error LNK1120: 1 unresolved externals
You need to look at the line above LNK1120
, the LNK2019
error tells you what is wrong.
Inside of your void display(class student)
function you are calling a function named decimals
that is not defined anywhere in your source code or in a library.
Why I am getting Fatal error LNK1120: 1 unresolved externals
Move this line from inside main
to file scope, and change it slightly:
Node* Node::first = NULL;
As written, you are declaring a local variable named first
, of type "pointer to member of class Node
, with type Node
". This local variable is distinct from and unrelated to Node::first
.
Related Topics
Ternary Conditional and Assignment Operator Precedence
Maximum Stack Size for C/C+ Program
Std::Vector of Std::Vectors Contiguity
Cpu Dispatcher for Visual Studio for Avx and Sse
How to Optimize Matrix Multiplication (Matmul) Code to Run Fast on a Single Processor Core
Ostream Chaining, Output Order
Difference Between C++11 Std::Bind and Boost::Bind
Cmake: Failed to Run Msbuild Command: Msbuild.Exe
Why Does Reallocating a Vector Copy Instead of Moving the Elements
How to Use Std::Imbue to Set the Locale for Std::Wcout
Cast Vector<T> to Vector<Const T>
How to Query a Running Process for Its Parameters List? (Windows, C++)
How to Use Cin.Fail() in C++ Properly
When Do We Need to Pass the Size of Array as a Parameter
Calculate Mean and Standard Deviation from a Vector of Samples in C++ Using Boost