Compile Question



Source code:
#include <gtkmm.h>
using namespace std;

int main(int argc, char *argv[]) {
    return 0;
}


Compile Error:
g++ -I/usr/include/gtkmm-2.4 -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/Test.d" -MT"src/Test.d" -o"src/Test.o" "../src/Test.cpp"
In file included from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm.h:29:20: warning: glibmm.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm.h:30:19: warning: giomm.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm.h:31:19: warning: gdkmm.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm.h:33,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/object.h:28:27: warning: glibmm/object.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm/object.h:29,
                 from /usr/include/gtkmm-2.4/gtkmm.h:33,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/base.h:26:28: warning: glibmm/utility.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm/base.h:27:28: warning: glibmm/ustring.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm.h:33,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/object.h:30:25: warning: gtkmmconfig.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm/dialog.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm/aboutdialog.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm.h:34,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/window.h:31:31: warning: glibmm/listhandle.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm/container.h:29,
                 from /usr/include/gtkmm-2.4/gtkmm/bin.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm/window.h:32,
                 from /usr/include/gtkmm-2.4/gtkmm/dialog.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm/aboutdialog.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm.h:34,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/widget.h:29:29: warning: pangomm/context.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm/widget.h:30:28: warning: pangomm/layout.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm/widget.h:37:25: warning: gdkmm/event.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm/widget.h:38:25: warning: gdkmm/types.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm/widget.h:39:26: warning: gdkmm/window.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm/widget.h:40:31: warning: gdkmm/dragcontext.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm/widget.h:41:26: warning: gdkmm/pixbuf.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm/widget.h:42:26: warning: gdkmm/screen.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm/widget.h:44:27: warning: gdkmm/display.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm/targetlist.h:28,
                 from /usr/include/gtkmm-2.4/gtkmm/widget.h:46,
                 from /usr/include/gtkmm-2.4/gtkmm/container.h:29,
                 from /usr/include/gtkmm-2.4/gtkmm/bin.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm/window.h:32,
                 from /usr/include/gtkmm-2.4/gtkmm/dialog.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm/aboutdialog.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm.h:34,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/targetentry.h:28:32: warning: glibmm/arrayhandle.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm/targetentry.h:30:43: warning: gtk/gtk.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm/rc.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm/widget.h:47,
                 from /usr/include/gtkmm-2.4/gtkmm/container.h:29,
                 from /usr/include/gtkmm-2.4/gtkmm/bin.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm/window.h:32,
                 from /usr/include/gtkmm-2.4/gtkmm/dialog.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm/aboutdialog.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm.h:34,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/style.h:34:37: warning: pangomm/fontdescription.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm/style.h:37:22: warning: gdkmm/gc.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm/style.h:38:26: warning: gdkmm/pixmap.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm/widget.h:49,
                 from /usr/include/gtkmm-2.4/gtkmm/container.h:29,
                 from /usr/include/gtkmm-2.4/gtkmm/bin.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm/window.h:32,
                 from /usr/include/gtkmm-2.4/gtkmm/dialog.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm/aboutdialog.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm.h:34,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/clipboard.h:35:31: warning: glibmm/containers.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm/dialog.h:31,
                 from /usr/include/gtkmm-2.4/gtkmm/aboutdialog.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm.h:34,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/box.h:30:31: warning: glibmm/helperlist.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm.h:35,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/accelkey.h:24:28: warning: gdk/gdkkeysyms.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm/cellview.h:31,
                 from /usr/include/gtkmm-2.4/gtkmm.h:48,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/celllayout.h:28:30: warning: glibmm/interface.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm/cellrenderer_generation.h:24,
                 from /usr/include/gtkmm-2.4/gtkmm/celllayout.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm/cellview.h:31,
                 from /usr/include/gtkmm-2.4/gtkmm.h:48,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/cellrenderertext.h:29:30: warning: pangomm/attrlist.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm/cellrenderer_generation.h:25,
                 from /usr/include/gtkmm-2.4/gtkmm/celllayout.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm/cellview.h:31,
                 from /usr/include/gtkmm-2.4/gtkmm.h:48,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/cellrendererpixbuf.h:31:24: warning: giomm/icon.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm/treeiter.h:31,
                 from /usr/include/gtkmm-2.4/gtkmm/treemodel.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm/celllayout.h:31,
                 from /usr/include/gtkmm-2.4/gtkmm/cellview.h:31,
                 from /usr/include/gtkmm-2.4/gtkmm.h:48,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/treemodelcolumn.h:22:26: warning: glibmm/value.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm/treemodelcolumn.h:23:25: warning: glib-object.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm.h:59,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/colorbutton.h:31:25: warning: gdkmm/color.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm/entry.h:36,
                 from /usr/include/gtkmm-2.4/gtkmm/combo.h:39,
                 from /usr/include/gtkmm-2.4/gtkmm.h:61,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/image.h:32:35: warning: gdkmm/pixbufanimation.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm.h:75,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/filechooser.h:31:24: warning: giomm/file.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm/icontheme.h:29,
                 from /usr/include/gtkmm-2.4/gtkmm.h:90,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/iconinfo.h:26:29: warning: gdkmm/rectangle.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm.h:97,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/calendar.h:31:25: warning: glibmm/date.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm.h:104,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/main.h:33:27: warning: sigc++/sigc++.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm.h:119,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/printcontext.h:28:29: warning: cairomm/context.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm/printcontext.h:30:29: warning: pangomm/fontmap.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm.h:121,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/printjob.h:31:29: warning: cairomm/surface.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm/texttagtable.h:31,
                 from /usr/include/gtkmm-2.4/gtkmm/textbuffer.h:35,
                 from /usr/include/gtkmm-2.4/gtkmm.h:158,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/texttag.h:33:26: warning: gdkmm/bitmap.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm/texttag.h:36:30: warning: pangomm/tabarray.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm/textbuffer.h:38,
                 from /usr/include/gtkmm-2.4/gtkmm.h:158,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/textiter.h:28:37: warning: glibmm/exceptionhandler.h: No such file or directory
/usr/include/gtkmm-2.4/gtkmm/textiter.h:29:32: warning: glibmm/slisthandle.h: No such file or directory
In file included from /usr/include/gtkmm-2.4/gtkmm/object.h:29,
                 from /usr/include/gtkmm-2.4/gtkmm.h:33,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/base.h:31: error: ‘Glib’ has not been declared
In file included from /usr/include/gtkmm-2.4/gtkmm.h:33,
                 from ../src/Test.cpp:9:
/usr/include/gtkmm-2.4/gtkmm/object.h:72: error: expected initializer before ‘:’ token
In file included from /usr/include/c++/4.4/new:40,
                 from /usr/include/c++/4.4/ext/new_allocator.h:33,
                 from /usr/include/c++/4.4/x86_64-linux-gnu/bits/c++allocator.h:34,
                 from /usr/include/c++/4.4/bits/allocator.h:48,
                 from /usr/include/c++/4.4/vector:62,
                 from /usr/include/gtkmm-2.4/gtkmm/treemodelcolumn.h:24,
                 from /usr/include/gtkmm-2.4/gtkmm/treeiter.h:31,
                 from /usr/include/gtkmm-2.4/gtkmm/treemodel.h:30,
                 from /usr/include/gtkmm-2.4/gtkmm/celllayout.h:31,
                 from /usr/include/gtkmm-2.4/gtkmm/cellview.h:31,
                 from /usr/include/gtkmm-2.4/gtkmm.h:48,
                 from ../src/Test.cpp:9:
/usr/include/c++/4.4/exception:35: error: expected ‘}’ before end of line
/usr/include/c++/4.4/exception:35: error: expected declaration before end of line
make: *** [src/Test.o] Error 1






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]