C++ Fatal Error Lnk1120: 1 Unresolved Externals

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



Leave a reply



Submit