当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 7 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : [问题]如何配置GTK编程环境
帖子发表于 : 2007-04-03 19:05 

注册: 2007-01-31 1:11
帖子: 43
送出感谢: 0 次
接收感谢: 0 次
我在源里装了gtk-2.0,和glib,可编译的时候出现如下问题
flea@flea-desktop:~$ gcc -o gtk Desktop/gtk.c
In file included from Desktop/gtk.c:1:
/usr/include/gtk-2.0/gtk/gtk.h:31:21: error: gdk/gdk.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:32:32: error: gtk/gtkaboutdialog.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:33:31: error: gtk/gtkaccelgroup.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:34:31: error: gtk/gtkaccellabel.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:35:29: error: gtk/gtkaccelmap.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:36:31: error: gtk/gtkaccessible.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:37:27: error: gtk/gtkaction.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:38:32: error: gtk/gtkactiongroup.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:39:31: error: gtk/gtkadjustment.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:40:30: error: gtk/gtkalignment.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:41:26: error: gtk/gtkarrow.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:42:32: error: gtk/gtkaspectframe.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:43:30: error: gtk/gtkassistant.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:44:25: error: gtk/gtkbbox.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:45:24: error: gtk/gtkbin.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:46:29: error: gtk/gtkbindings.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:47:24: error: gtk/gtkbox.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:48:27: error: gtk/gtkbutton.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:49:29: error: gtk/gtkcalendar.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:50:31: error: gtk/gtkcelllayout.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:51:33: error: gtk/gtkcellrenderer.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:52:38: error: gtk/gtkcellrendereraccel.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:53:38: error: gtk/gtkcellrenderercombo.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:54:39: error: gtk/gtkcellrendererpixbuf.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:55:41: error: gtk/gtkcellrendererprogress.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:56:37: error: gtk/gtkcellrendererspin.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:57:37: error: gtk/gtkcellrenderertext.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:58:39: error: gtk/gtkcellrenderertoggle.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:59:29: error: gtk/gtkcellview.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:60:32: error: gtk/gtkcheckbutton.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:61:34: error: gtk/gtkcheckmenuitem.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:62:30: error: gtk/gtkclipboard.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:63:26: error: gtk/gtkclist.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:64:32: error: gtk/gtkcolorbutton.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:65:29: error: gtk/gtkcolorsel.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:66:35: error: gtk/gtkcolorseldialog.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:67:26: error: gtk/gtkcombo.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:68:29: error: gtk/gtkcombobox.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:69:34: error: gtk/gtkcomboboxentry.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:70:30: error: gtk/gtkcontainer.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:71:26: error: gtk/gtkctree.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:72:26: error: gtk/gtkcurve.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:73:27: error: gtk/gtkdialog.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:74:24: error: gtk/gtkdnd.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:75:32: error: gtk/gtkdrawingarea.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:76:29: error: gtk/gtkeditable.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:77:26: error: gtk/gtkentry.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:78:36: error: gtk/gtkentrycompletion.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:79:26: error: gtk/gtkenums.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:80:29: error: gtk/gtkeventbox.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:81:29: error: gtk/gtkexpander.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:82:28: error: gtk/gtkfilesel.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:83:26: error: gtk/gtkfixed.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:84:38: error: gtk/gtkfilechooserbutton.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:85:38: error: gtk/gtkfilechooserdialog.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:86:38: error: gtk/gtkfilechooserwidget.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:87:31: error: gtk/gtkfontbutton.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:88:28: error: gtk/gtkfontsel.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:89:26: error: gtk/gtkframe.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:90:26: error: gtk/gtkgamma.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:91:23: error: gtk/gtkgc.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:92:30: error: gtk/gtkhandlebox.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:93:26: error: gtk/gtkhbbox.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:94:25: error: gtk/gtkhbox.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:95:27: error: gtk/gtkhpaned.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:96:27: error: gtk/gtkhruler.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:97:27: error: gtk/gtkhscale.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:98:31: error: gtk/gtkhscrollbar.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:99:31: error: gtk/gtkhseparator.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:100:32: error: gtk/gtkiconfactory.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:101:30: error: gtk/gtkicontheme.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:102:29: error: gtk/gtkiconview.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:103:26: error: gtk/gtkimage.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:104:34: error: gtk/gtkimagemenuitem.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:105:30: error: gtk/gtkimcontext.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:106:36: error: gtk/gtkimcontextsimple.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:107:35: error: gtk/gtkimmulticontext.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:108:32: error: gtk/gtkinputdialog.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:109:30: error: gtk/gtkinvisible.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:110:25: error: gtk/gtkitem.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:111:32: error: gtk/gtkitemfactory.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:112:26: error: gtk/gtklabel.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:113:27: error: gtk/gtklayout.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:114:31: error: gtk/gtklinkbutton.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:115:25: error: gtk/gtklist.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:116:29: error: gtk/gtklistitem.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:117:30: error: gtk/gtkliststore.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:118:25: error: gtk/gtkmain.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:119:25: error: gtk/gtkmenu.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:120:28: error: gtk/gtkmenubar.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:121:29: error: gtk/gtkmenuitem.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:122:30: error: gtk/gtkmenushell.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:123:35: error: gtk/gtkmenutoolbutton.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:124:34: error: gtk/gtkmessagedialog.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:125:25: error: gtk/gtkmisc.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:126:28: error: gtk/gtkmodules.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:127:29: error: gtk/gtknotebook.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:128:27: error: gtk/gtkobject.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:129:32: error: gtk/gtkoldeditable.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:130:31: error: gtk/gtkoptionmenu.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:131:26: error: gtk/gtkpaned.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:132:27: error: gtk/gtkpixmap.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:133:25: error: gtk/gtkplug.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:134:28: error: gtk/gtkpreview.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:135:35: error: gtk/gtkprintoperation.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:136:29: error: gtk/gtkprogress.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:137:32: error: gtk/gtkprogressbar.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:138:32: error: gtk/gtkradioaction.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:139:32: error: gtk/gtkradiobutton.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:140:34: error: gtk/gtkradiomenuitem.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:141:36: error: gtk/gtkradiotoolbutton.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:142:26: error: gtk/gtkrange.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:143:23: error: gtk/gtkrc.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:144:34: error: gtk/gtkrecentchooser.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:145:40: error: gtk/gtkrecentchooserdialog.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:146:38: error: gtk/gtkrecentchoosermenu.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:147:40: error: gtk/gtkrecentchooserwidget.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:148:33: error: gtk/gtkrecentfilter.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:149:34: error: gtk/gtkrecentmanager.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:150:26: error: gtk/gtkruler.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:151:26: error: gtk/gtkscale.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:152:30: error: gtk/gtkscrollbar.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:153:35: error: gtk/gtkscrolledwindow.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:154:30: error: gtk/gtkselection.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:155:30: error: gtk/gtkseparator.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:156:38: error: gtk/gtkseparatormenuitem.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:157:38: error: gtk/gtkseparatortoolitem.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:158:29: error: gtk/gtksettings.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:159:27: error: gtk/gtksignal.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:160:30: error: gtk/gtksizegroup.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:161:27: error: gtk/gtksocket.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:162:31: error: gtk/gtkspinbutton.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:163:30: error: gtk/gtkstatusbar.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:164:31: error: gtk/gtkstatusicon.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:165:26: error: gtk/gtkstock.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:166:26: error: gtk/gtkstyle.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:167:26: error: gtk/gtktable.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:168:36: error: gtk/gtktearoffmenuitem.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:169:25: error: gtk/gtktext.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:170:31: error: gtk/gtktextbuffer.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:171:39: error: gtk/gtktextbufferrichtext.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:172:29: error: gtk/gtktextview.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:173:30: error: gtk/gtktipsquery.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:174:33: error: gtk/gtktoggleaction.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:175:33: error: gtk/gtktogglebutton.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:176:37: error: gtk/gtktoggletoolbutton.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:177:28: error: gtk/gtktoolbar.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:178:31: error: gtk/gtktoolbutton.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:179:29: error: gtk/gtktoolitem.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:180:29: error: gtk/gtktooltips.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:181:25: error: gtk/gtktree.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:182:28: error: gtk/gtktreednd.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:183:29: error: gtk/gtktreeitem.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:184:30: error: gtk/gtktreemodel.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:185:36: error: gtk/gtktreemodelfilter.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:186:34: error: gtk/gtktreemodelsort.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:187:34: error: gtk/gtktreeselection.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:188:30: error: gtk/gtktreestore.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:189:29: error: gtk/gtktreeview.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:190:35: error: gtk/gtktreeviewcolumn.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:191:30: error: gtk/gtktypeutils.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:192:30: error: gtk/gtkuimanager.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:193:26: error: gtk/gtkvbbox.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:194:25: error: gtk/gtkvbox.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:195:28: error: gtk/gtkversion.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:196:29: error: gtk/gtkviewport.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:197:27: error: gtk/gtkvpaned.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:198:27: error: gtk/gtkvruler.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:199:27: error: gtk/gtkvscale.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:200:31: error: gtk/gtkvscrollbar.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:201:31: error: gtk/gtkvseparator.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:202:27: error: gtk/gtkwidget.h: No such file or directory
/usr/include/gtk-2.0/gtk/gtk.h:203:27: error: gtk/gtkwindow.h: No such file or directory
Desktop/gtk.c: In function ‘main’:
Desktop/gtk.c:6: error: ‘GtkWidget’ undeclared (first use in this function)
Desktop/gtk.c:6: error: (Each undeclared identifier is reported only once
Desktop/gtk.c:6: error: for each function it appears in.)
Desktop/gtk.c:6: error: ‘window’ undeclared (first use in this function)
Desktop/gtk.c:10: error: ‘GTK_WINDOW_TOPLEVEL’ undeclared (first use in this function)


gtk.c如下
#include <gtk-2.0/gtk/gtk.h>

int main( int argc,
char *argv[] )
{
GtkWidget *window;

gtk_init (&argc, &argv);

window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_show (window);

gtk_main ();

return 0;
}
我把头文件改成#include<gtk/gtk.h>也不行
gtk-2.0文件夹是放在/usr/include/里的
是什么问题呢?
另外,gcc是如何找到库的呢?


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2007-04-03 22:51 
头像

注册: 2006-12-02 12:25
帖子: 689
送出感谢: 0 次
接收感谢: 0 次
gtk-2.0的dev装了吗?

编译这种东东要一点技巧的。偶有一篇贴子可以参考一下啦,就在这里,找一找吧。


_________________
Titainium


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2007-04-03 23:05 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 272
把anjuta一装就都有了。autogen automake autoconf


_________________
● 鸣学


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2007-04-04 17:41 
头像

注册: 2006-12-02 12:25
帖子: 689
送出感谢: 0 次
接收感谢: 0 次
anjuta暴不好用,现在都在用netbeans或者VIM


_________________
Titainium


页首
 用户资料  
 
5 楼 
 文章标题 :
帖子发表于 : 2007-04-04 17:52 
头像

注册: 2005-06-11 14:03
帖子: 6226
地址: 不明真相的群众
送出感谢: 0 次
接收感谢: 0 次
sudo apt-get build-dep gedit ,这样基本上你开发gtk+的库都会被安装上.


_________________
我的blog,关于技术,软件,linux,vim <---- 所有博客均被河蟹.


页首
 用户资料  
 
6 楼 
 文章标题 : Re: [问题]如何配置GTK编程环境
帖子发表于 : 2012-07-24 12:39 

注册: 2012-07-24 12:35
帖子: 14
送出感谢: 0 次
接收感谢: 0 次
配置:http://www.tognu.com/index.php?m=content&c=index&a=show&catid=6&id=1

编译是用gcc -o base base.c 'pkg-config --cflags --libs gtk+-2.0'

'pkg-config --cflags --libs gtk+-2.0' 它向编译器指出了包含文件的路径,动态链接库路径和要链接哪些动态链接库


页首
 用户资料  
 
7 楼 
 文章标题 : Re: [问题]如何配置GTK编程环境
帖子发表于 : 2012-07-24 12:42 

注册: 2012-07-24 12:35
帖子: 14
送出感谢: 0 次
接收感谢: 0 次
配置:http://www.tognu.com/index.php?m=content&c=index&a=show&catid=6&id=1

编译用这个 gcc –o base base.c 'pkg-config --cflags --libs gtk+-2.0'

'pkg-config --cflags --libs gtk+-2.0' 它向编译器指出了包含文件的路径,动态链接库路径和要链接哪些动态链接库


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 7 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:Yahoo [Bot] 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译