[Fixed]C++ Issue
#1

Hey. Sorry if this is a dumb question, but i'm a beginner in c++ :/.

Okay, i got following problem:

I made:
pawn Code:
HDC hdc=GetDC(0);
SetPixel(hdc, 100,100, RGB(3,3,0));
I included:
pawn Code:
#include <iostream>
#include <windows.h>
#include <math.h>
#include <fstream.h>
I'm using Dev C++ as a compiler and run this as a console application. When i hit compile it gives me following errors:

Code:
[Linker Error] undefined reference to 'SetPixel@16'
Line 32:2 - Id returned 1 exit status
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.
Reply


Messages In This Thread
[Fixed]C++ Issue - by DeathOnaStick - 28.04.2010, 14:48
Re: [Fixed]C++ Issue - by Jansish - 28.04.2010, 15:20
Re: [Fixed]C++ Issue - by Jansish - 29.04.2010, 13:15
Re: [Fixed]C++ Issue - by Correlli - 29.04.2010, 13:20
Re: [Fixed]C++ Issue - by Jese - 29.04.2010, 14:22

Forum Jump:


Users browsing this thread: 1 Guest(s)