hdc = BeginPaint(hwnd, &paintstruct);
This is an exact copy of the example on this site, which is why I didn't post it at first. When I include stdafx.h the linker error goes away, but as I said, there are other 4 other header files I don't have, so I gotta be doing something wrong...
wincl.cbSize = sizeof(WNDCLASSEX);
wincl.style = CS_HREDRAW | CS_VREDRAW;
wincl.lpfnWndProc = WndProc;
wincl.cbClsExtra = 0;
wincl.cbWndExtra = 0;
wincl.hInstance = hInstance;
wincl.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wincl.hCursor = LoadCursor(NULL, IDC_ARROW);
wincl.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
EDIT: I did some searching and found that I needed to include the OpenGL libraries, but when I did that I still get a linker error, but this time on something called "__gxx_personality_v0"
That line is never used in my program, so now i'm really lost...