I am learning how to make Windows applications in C, and am trying to set individual pixels using SetPixel(HDC hDC, int x, int y, COLORREF crColor)
.
I have never had a compile error until I added that line into it. I do have windows.h included of course. I have searched around for an answer, and I never found anything.
It gives the error " undefined reference to _imp__SetPixel@16' "
To compile, I am using the command " gcc -g -Wall -o $(EXENAME) $(SRC) "
. No fancy IDE.
If someone could tell me why is says imp_ and the @16 part, please do as well. I have never seen that before.
EDIT: I have found what the _imp means at this site.