获取错误“无法打开包含文件:glibconfig.h”在Visual Studio 2010中 [英] Get error "Cannot open include file: glibconfig.h" in Visual Studio 2010

查看:1015
本文介绍了获取错误“无法打开包含文件:glibconfig.h”在Visual Studio 2010中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我从链接下载了gdk和dtk库: http://www.gtk.org/download/ win32.php [ ^ ]并尝试在Visual Studio中将gdk和gtk标题包含在我的C ++ / cli程序中:



Hi, I download the gdk and dtk library from the link:http://www.gtk.org/download/win32.php[^] and trying to include gdk and gtk header to my C++/cli program in visual studio:

#include <glib.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gtk/gtk.h>





但我得到



but I get the

Error   2   error C1083: Cannot open include file: 'glibconfig.h': No such file or directory    Lib\glib-dev_2.34.3-1_win32\include\glib-2.0\glib\gtypes.h 

How to fix it?

推荐答案

这是致命错误C1083 [ ^ ]。阅读该MSDN文档以了解有关它的更多信息。



但最好的补救措施是检查您所包含的fileName,因为当编译器无法通过该名称查找名称时会生成此错误。确保存在 Lib\glib-dev_2.34.3-1_win32 \include\glib-2.0 \ glib\gtypes.h 文件。当fileName不匹配时,也可能抛出此异常。



如果这是您第一次运行应用程序或项目,请确保已下载所需的所有文件。或者联系项目开发人员。
This is a Fatal Error C1083[^]. Read that MSDN documentation to learn more about it.

But the best remedy is to check for the fileName that you're including because this error generates when the compiler is not able to find a name by that name. Make sure that Lib\glib-dev_2.34.3-1_win32\include\glib-2.0\glib\gtypes.h file exists. This might also get thrown when the fileName doesn't match.

If this is the first time you're running the application or project make sure you've downloaded all of the files required. Or contact the developer of the project.


这篇关于获取错误“无法打开包含文件:glibconfig.h”在Visual Studio 2010中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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