tags:

views:

287

answers:

2

So after a bit of searching for Win32 GUI tutorials (I decided a tutorial on making GUIs might make me more active in making C++ applications and therefore stronger at programming in C++ in general,) I came across a rohitab tutorial. There are two parts that I have been able to find. Part 1 worked fine, and I'm now working on Part 2, however, I'm getting this error in Code::Blocks:

C:\Users\John\Documents\Windows GUIs\first_gui.cpp||In function 'C:\Users\John\Documents\Windows GUIs\first_gui.o:first_gui.cpp:(.text+0x281)||undefined reference to '_TextOutA@20'|

My code can be found here.

I would greatly appreciate any help.

+4  A: 

Did you link your app against GDI32.LIB?

David Titarenco
Thanks. I didn't, and I don't have the library, so I'm just going to use a better tutorial I just found. Thanks. =]
John
If you have windows, then you don't need the library. You can get the same result with statements in your .def file.
John Knoeller
+3  A: 

Looks like a linker error, are you linking to gdi32.lib?

John Knoeller