发新话题
打印

anjuta编译错误

anjuta编译错误

我在anjuta里新建一个工程,然后什么东西都没改过,直接就编译,可是跳出好多错误,网上也找不到相关资料,不知道怎么解决,大家帮我看看 6 Q* I1 C5 h  F% c8 N/ K8 R7 p
make main.o! U- j, K4 Y1 o2 ]$ I
/home/user/Projects/gtk-foobar/src/main.cc:25:28: error: libglademm/xml.h: No such file or directory& c! x- F3 f6 [
/home/user/Projects/gtk-foobar/src/main.cc:26:19: error: gtkmm.h: No such file or directory5 P/ }6 A9 u, Q; N: G3 [! U
g++    -c -o main.o main.cc) G/ V* A% \3 z2 q+ L3 H
main.cc: In function ‘int main(int, char**)’:
5 H2 P/ A0 L( W, y/home/user/Projects/gtk-foobar/src/main.cc:42: error: ‘Gtk’ has not been declared
! V5 r/ y1 X) a/home/user/Projects/gtk-foobar/src/main.cc:42: error: expected `;' before ‘kit’
6 P' N% C% E) n' h- f0 d/home/user/Projects/gtk-foobar/src/main.cc:45: error: ‘Glib’ has not been declared8 Z! D7 L, h+ f4 i0 m
/home/user/Projects/gtk-foobar/src/main.cc:45: error: ‘Gnome’ has not been declared
2 ?* P" P1 z& i- y" t3 z) [$ C' O/home/user/Projects/gtk-foobar/src/main.cc:45: error: ‘refXml’ was not declared in this scope
" ~, U  T: \! Q) z1 M* U/home/user/Projects/gtk-foobar/src/main.cc:48: error: ‘Gnome’ has not been declared3 m' u" Q1 ]( X9 t6 \# Q8 `
/home/user/Projects/gtk-foobar/src/main.cc:50: error: ISO C++ forbids declaration of ‘Gnome’ with no type9 x# u, D$ p' \: N4 y
/home/user/Projects/gtk-foobar/src/main.cc:50: error: expected `)' before ‘::’ token
3 n4 H. z: I- _! x/home/user/Projects/gtk-foobar/src/main.cc:50: error: expected `{' before ‘::’ token( z+ F+ s, U/ Q" Z9 Y
/home/user/Projects/gtk-foobar/src/main.cc:50: error: ‘::Glade’ has not been declared
( k5 N) }9 T2 T& U/home/user/Projects/gtk-foobar/src/main.cc:50: error: ‘ex’ was not declared in this scope
7 V8 S) W0 s$ D; U8 X/home/user/Projects/gtk-foobar/src/main.cc:50: error: expected `;' before ‘)’ token
0 A2 y. F- a* R/home/user/Projects/gtk-foobar/src/main.cc:55: error: ‘Gtk’ has not been declared$ L6 O" F3 [, y* t) t7 r8 p! q4 A
/home/user/Projects/gtk-foobar/src/main.cc:55: error: ‘main_win’ was not declared in this scope
/ A4 F9 @% X9 c) j0 {/home/user/Projects/gtk-foobar/src/main.cc:59: error: ‘kit’ was not declared in this scope! z0 B" q. a$ R9 O* I
make: *** [main.o] Error 1
2 V* M( A: F) o" \5 H- cCompleted... unsuccessful
+ H6 T5 r8 p4 ]7 \总共耗时:0 秒      

TOP

先找些书看看      
上帝说,有问题,找GOOGLE 写程序是很神圣的事情!同样只是装系统,卖菜的大娘会的事情不见得就跟卖菜一样了。

TOP

要安装必要的开发库才行,根据提示来吧,要安装gtkmm、glib、gnome、glade、glademm等的开发库      

TOP

发新话题