So thats my code:
#include <windows.h>
#include <iostream>
using namespace std;
int main(){
HWND window;
window = GetForegroundWindow();
POINT c;
GetCursorPos(&c);
int x = c.x;
int y = c.y;
SetCursorPos(x,y+100);
SetWindowPos(window,HWND_TOP,500,500,500,500,SWP_SHOWWINDOW);
return 0;
}
and Thats The error:
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\michi\AppData\Local\Temp\ccXraf6i.o:ILoveCPP.cpp:(.text+0xa7): undefined reference to std::ios_base::Init::~Init()' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\michi\AppData\Local\Temp\ccXraf6i.o:ILoveCPP.cpp:(.text+0xc8): undefined reference to
std::ios_base::Init::Init()'
collect2.exe: error: ld returned 1 exit status
I want do do an programm that moves the Cursor a little bit and it dont work. (Sorry for my bad english)