28.04.2010, 14:48
Hey. Sorry if this is a dumb question, but i'm a beginner in c++ :/.
Okay, i got following problem:
I made:
I included:
I'm using Dev C++ as a compiler and run this as a console application. When i hit compile it gives me following errors:
If you need more information, just tell me.
Would be nice if you would answer, although this might be a stupid question. Thanks!
#edit#: I just found out i forgot linking the libgdi32.o library to the project. Thanks to everyone that reads, anyway.
Okay, i got following problem:
I made:
pawn Code:
HDC hdc=GetDC(0);
SetPixel(hdc, 100,100, RGB(3,3,0));
pawn Code:
#include <iostream>
#include <windows.h>
#include <math.h>
#include <fstream.h>
Code:
[Linker Error] undefined reference to 'SetPixel@16' Line 32:2 - Id returned 1 exit status
Would be nice if you would answer, although this might be a stupid question. Thanks!
#edit#: I just found out i forgot linking the libgdi32.o library to the project. Thanks to everyone that reads, anyway.