Hello, I needed a function to paint pixels on the console.
I've got a solution here but when compiling gives me the following error:
C: \ Users \ user \ AppData \ Local \ Temp \ ccORhjHu.o: test.cpp: (.text + 0xa1): undefined reference to 'SetPixel @ 16'
collect2.exe: error: ld returned 1 exit status
I would like to provide me with a way to correct this error or another way of doing the same thing.
Note: I use windows 7 32-bit with mingw c ++ installed