I am getting an error when trying to compile some C++ code:
#include "graphics.h"
HDC hdc;
int main()
{
initwindow(400, 300);
for (int i = 0; i < 300; i++) {
Rectangle(hdc, 100 + i, 100, 300, 300);
}
getch();
}
Not sure if the graphics.h
file is in the right place, stupidly on desktop.
Also, this come up as error:
unresolved external symbol WinMain referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ)