fatal error LNK1120: 1 unresolved externals

#include <iostream>
#include "console.h"
using namespace std;

int main() {
Console::setCursorPosition(5, 5);
cout << "1";

}

Hey everyone, i am trying to use the header "console.h" but am getting this error from the above simplified code:
1>Source.obj : error LNK2019: unresolved external symbol "public: static void __cdecl Console::setCursorPosition(short,short)" (?setCursorPosition@Console@@SAXFF@Z) referenced in function _main
1>C:\Users\User\OneDrive\Desktop\C++\Projects\testing\Debug\testing.exe : fatal error LNK1120: 1 unresolved externals

Anyone knows how to fix this ? Thanks in advance :)
you have to compile and link the c++ or library file with the code in it: including the header is not enough.
how you do that exactly depends on what compiler you have + whether you have the code in a .cpp file or compiled into a library...
Topic archived. No new replies allowed.