gtkmm 包括不工作的 Windows 7
我安装了 gtkmm gui 库(用于 c++),但我无法让它工作。 c:\gtkmm64\bin 在路径上,但我的 ide 说只有 c:\mingw\include\something 下的包含文件在那里。我使用netbeans作为我的IDE,我运行Windows 7,我的编译器是mingw。
i installed the gtkmm gui libraries(for c++), but i can't get it to work. c:\gtkmm64\bin is on Path, but my ide says only the include files under c:\mingw\include\something are there. i use netbeans as my ide, i run windows 7, my compiler is mingw.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
配置 Gtkmm 使其工作在某种程度上可能是一场噩梦。
您需要对项目属性执行以下操作:
在“C++ 编译器”部分,您必须将所有包含内容放入“包含目录”部分。请注意,那里有很多 .h 文件,不仅需要 gtkmm/include 。例如,还需要 glib/include 等。
在“链接器”部分,单击“库”。您必须将 gtkmm 包中的所有库放入其中。与上一节一样,不仅需要 gtkmm/lib:还需要 glib/lib、pango/lib 等。
当编译器停止抱怨时,你就完成了。
Configuring Gtkmm to work can somewhat be a nightmare.
You need to do the following on project properties:
On "C++ compiler" section, you'll have to put all includes in the "Include Directories" section. Be aware that there are a lot of .h files sown there, not only gtkmm/include is needed. For example, glib/include will also be needed, etc.
On the "Linker" section, click in Libraries. You have to put there all libraries in the gtkmm package. As in the previous seciton, not only gtkmm/lib is needed: glib/lib, pango/lib, etc. will also be needed.
You're done when the compiler stops complaining.