[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:22688] gtkmm and gnome aplication do not compile
- From: Kazuhisa Ohrui<o-kazu@xxxxxxxxxxxxxxxx>
- Subject: [debian-users:22688] gtkmm and gnome aplication do not compile
- Date: Tue, 6 Jun 2000 22:50:25 +0900
- X-ml-info: If you have a question, send a mail with the body "# help" (without quotes) to the address debian-users-ctl@debian.or.jp; help=<mailto:debian-users-ctl@debian.or.jp?body=help>
- X-ml-name: debian-users
- X-mlserver: fml [fml 2.2]; post only (only members can post)
- Message-id: <878zwjortp.wl@xxxxxxxxxxxxxxxxxxx>
- X-mail-count: 22688
- User-agent: Wanderlust/2.3.0 (Roam) EMY/1.13.6 (Life is balance) FLIM/1.13.2 (Kasanui) APEL/10.2 Emacs/20.6.90 (i386-debian-linux-gnu) MULE/4.1 (AOI)
大類と申します。
slinkからpotato,woodyとupgradeしてきた環境でgtkmmやgnome等のアプリケーションがコンパイル不能になって困っています。
例えば,
--- hello.cc
#include <gtk--.h>
class HelloWorld : public Gtk::Window { // (1)
Gtk::Button b;
public:
HelloWorld() : b( "こんにちは" ) {
add( b ); // (2)
b.clicked.connect(Gtk::Main::quit.slot()); // (3)
b.show(); // (4)
}
gint delete_event_impl(GdkEventAny *) { // (5)
Gtk::Main::instance()->quit();
return 0;
}
};
int main( int argc, char **argv )
{
Gtk::Main m( &argc, &argv, true ); // (7)
HelloWorld w; // (6)
w.set_usize( 100,20 );
w.show(); // (4)
m.run(); // (8)
return 0;
}
--- hello.cc
を
g++ -o hello `gtkmm-config --cflags --libs` hello.cc
でコンパイルすると以下のようなエラーメッセージが出ます。
--- error
In file included from /usr/include/gdk/gdktypes.h:33,
from /usr/include/gdk/gdk.h:31,
from /usr/include/gtk/gtk.h:31,
from /usr/include/gtk--.h:61,
from hello.cc:5:
/usr/include/glib.h:502: syntax error before `;'
/usr/include/glib.h:503: syntax error before `;'
/usr/include/glib.h:504: syntax error before `;'
/usr/include/glib.h:505: syntax error before `;'
/usr/include/glib.h:769: `GQuark' was not declared in this scope
/usr/include/glib.h:769: parse error before `,'
/usr/include/glib.h:840: syntax error before `*'
/usr/include/glib.h:1554: `guint32' was not declared in this scope
/usr/include/glib.h:1554: parse error before `,'
/usr/include/glib.h:1572: `guint32' was not declared in this scope
/usr/include/glib.h:1572: parse error before `,'
/usr/include/glib.h:1718: parse error before `*'
/usr/include/glib.h:1721: parse error before `*'
/usr/include/glib.h:1754: syntax error before `('
/usr/include/glib.h:1755: syntax error before `('
/usr/include/glib.h:1756: syntax error before `('
/usr/include/glib.h:1757: `GQuark' was not declared in this scope
省略
/usr/include/gtk--/base.h:70: syntax error before `;'
In file included from /usr/include/gtk--.h:73,
from hello.cc:5:
/usr/include/gtk--/object.h:111: `GQuark' was not declared in this scope
/usr/include/gtk--/object.h:111: parse error before `)'
/usr/include/gtk--/object.h:130: `GQuark' was not declared in this scope
/usr/include/gtk--/object.h:130: parse error before `,'
/usr/include/gtk--/object.h:136: `GQuark' was not declared in this scope
/usr/include/gtk--/object.h:136: parse error before `,'
/usr/include/gtk--/object.h:143: `GQuark' was not declared in this scope
/usr/include/gtk--/object.h:143: parse error before `)'
/usr/include/gtk--/object.h:145: `GQuark' was not declared in this scope
/usr/include/gtk--/object.h:145: parse error before `)'
In file included from /usr/include/gtk--/container.h:27,
from /usr/include/gtk--/bin.h:27,
from /usr/include/gtk--/alignment.h:27,
from /usr/include/gtk--.h:76,
from hello.cc:5:
/usr/include/gtk--/widget.h:528: type specifier omitted for parameter
/usr/include/gtk--/widget.h:528: parse error before `)'
/usr/include/gtk--/widget.h:535: type specifier omitted for parameter
/usr/include/gtk--/widget.h:535: parse error before `)'
/usr/include/gtk--/widget.h:859: `guint32' was not declared in this scope
/usr/include/gtk--/widget.h:859: template argument 7 is invalid
/usr/include/gtk--/widget.h:859: confused by earlier errors, bailing out
--- error
gnomeが必要なパッケージをソースからコンパイルする時も同様のエラーがでて再構築できません。
関係のありそうなパッケージは
ii gcc 2.95.2-12 The GNU C compiler.
ii cpp 2.95.2-12 The GNU C preprocessor.
ii libgtkmm-dev 1.2.0-1 Static library and header files of gtk--, a
ii libgtkmm1.2 1.2.0-1 Shared library of Gtk--, a C++ wrapper for G
ii libgnome-dev 1.2.1-1 The Gnome libraries -- development package
ii libobgnome-dev 1.0.40-2 Objective-C - Gnome bindings -- development
等です。
どなたか同様な症状で解決された方はおられないでしょうか?
--
==========================================
Kazuhisa Ohrui(大類 和久)
E-mail(個人) : o-kazu@xxxxxxxxxxxxxxxx
E-mail(会社) : kazu-rui@xxxxxxxxxxx
URL : http://www.ifnet.or.jp/~o-kazu/
==========================================