C ++ GUI教程:未定义引用TextOut [英] C++ GUI Tutorial: undefined reference to TextOut

查看:436
本文介绍了C ++ GUI教程:未定义引用TextOut的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,经过一番搜索Win32 GUI教程(我决定一个关于制作GUI的教程可能会使我更积极地使C ++应用程序,因此更强大的C ++编程),我遇到了一个rohitab教程。有两个部分,我已经能够找到。第1部分工作正常,我现在正在第2部分,但是,我在Code :: Blocks中收到此错误:

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 GUI \first_gui.cpp ||在函数'C:\Users\John\Documents\Windows GUIs\first_gui.o:first_gui.cpp :(。text + 0x281)||未定义引用'_TextOutA @ 20 '|

我可以找到我的代码这里

我非常感谢任何帮助。

推荐答案

您是否已将应用程式连结至 GDI32.LIB

这篇关于C ++ GUI教程:未定义引用TextOut的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆