I am trying to use the SetCursorPos function to move my cursor in Windows 10 with C++.
Here is my code:
#include <Windows.h>
int main()
{
SetCursorPos(100,100);
return 0;
}
Whenever I run the code, I get this error:
undefined reference to `SetCursorPos@8'
I have read through What is an undefined reference/unresolved external symbol error and how do I fix it?, but I could not find a solution to my problem.
I am sure that I missed something, but I have no clue to what that something is; sorry if the answer is posted elsewhere.