Eclipse CDT - 链接到Windows lib文件的问题 [英] Eclipse CDT - problem linking to windows lib files

查看:255
本文介绍了Eclipse CDT - 链接到Windows lib文件的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 未定义的引用到`SetStretchBltMode @ 8'
未定义引用StretchDIBits @ 52
未定义引用SetDIBitsToDevi

这些在windows libs中定义的函数?



如果是这样,他们会安装Vista,或者我需要安装它们,如果是,我可以在哪里下载它们。 p>

谢谢

解决方案

我知道你很久以前解决了你的问题,参考,我认为你应该能够运行g ++与 -mwindows ,这将链接gdi32.dll和comdlg32.dll与您的二进制自动。



此页面有关于MinGW上Win32的教程


I'm getting the folling linker errors when compiling with gcc:

undefined reference to `SetStretchBltMode@8' 
undefined reference to `StretchDIBits@52' 
undefined reference to `SetDIBitsToDevi

Are these functions defined in the windows libs?

If so do they come installed with Vista, or do I need to install them, and if so where can i download them.

Thanks

解决方案

I know you solved your problem long ago, but for reference, I think you should be able to run g++ with -mwindows and that'll link gdi32.dll and comdlg32.dll with your binary automatically.

This page has a tutorial for Win32 on MinGW

这篇关于Eclipse CDT - 链接到Windows lib文件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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