Here you are:
#include <windows.h>
#include <stdlib.h>
int Random(int range) { return rand()%range; }
int main()
{
HDC dc = GetDC(0);
while(true)
{
MoveToEx(dc, Random(1000), Random(1000), 0);
LineTo(dc, Random(1000), Random(1000));
Sleep(100);
}
}
Får følgende fejl:
[Linker error] undefined reference to `MoveToEx@16'
[Linker error] undefined reference to `LineTo@12'
Noget med min compiler?
Bruger Dev-C++