Problems compiling my first program, HELP!!



Hey folks, I need a little help her with this program.

#include <gtkmm/main.h>
#include <gtkmm.h>

int main(int argc, char *argv[]){
    Gtk::Main kit(argc, argv);
    Gtk::Window window;
    Gtk::Main::run(window);
   
    return 0;
}



Project Parameters:
~~~~~~~~~~~~~~~~~~~
C++ compiler:
-IC:/Dev-Cpp/include/gtkmm-2.4 -IC:/Dev-Cpp/lib/gtkmm-2.4/include -IC:/Dev-Cpp/include/glibmm- 2.4 -IC:/Dev-Cpp/lib/glibmm-2.4/include -IC:/Dev-Cpp/include/gdkmm-2.4 -IC:/Dev-Cpp/lib/gdkmm-2.4/include -IC:/Dev-Cpp/include/pangomm-1.4 -IC:/Dev-Cpp/include/atkmm-1.6 -IC:/Dev-
Cpp/include/gtk-2.0 -IC:/Dev-Cpp/include/sigc++- 2.0 -IC:/Dev-Cpp/lib/sigc++-2.0/include -IC:/Dev
-Cpp/include/glib-2.0 -IC:/Dev-Cpp/lib/glib-2.0/include -IC:/Dev-Cpp/lib/gtk-2.0/include -
IC:/Dev-Cpp/include/pango-1.0 -IC:/Dev-Cpp/include/atk-1.0

Linker:
~~~~~
-LC:/Dev-Cpp/lib -lgtkmm-2.4 -lgdkmm-2.4 -latkmm-1.6 -lgtk-win32-2.0 -lpangomm-1.4 -lglibmm-2.4
-lsigc-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -
lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv
-Wl,--enable-runtime-pseudo-reloc
-mwindows

GTKmm Installation
~~~~~~~~~~~~~~~~~~~
C:\Dev-Cpp\ [Just like the manual recomends!!]


 
Compiler Error
~~~~~~~~~~~

Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Jamiil\My Documents\c++\gtkmm\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\Jamiil\My Documents\c++\gtkmm\Makefile.win" all
g++.exe -D__DEBUG__ -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -IC:/Dev-Cpp/include/gtkmm- 2.4 -IC:/Dev-Cpp/lib/gtkmm-2.4/include -IC:/Dev-Cpp/include/glibmm-2.4 -IC:/Dev-Cpp/lib/glibmm-2.4/include -IC:/Dev-Cpp/include/gdkmm-2.4 -IC:/Dev-Cpp/lib/gdkmm-2.4/include -IC:/Dev-Cpp/include/pangomm-1.4 -IC:/Dev-Cpp/include/atkmm- 1.6 -IC:/Dev-Cpp/include/gtk-2.0 -IC:/Dev-Cpp/include/sigc++-2.0 -IC:/Dev-Cpp/lib/sigc++-2.0/include -IC:/Dev-Cpp/include/glib-2.0 -IC:/Dev-Cpp/lib/glib-2.0/include -IC:/Dev-Cpp/lib/gtk-2.0/include -IC:/Dev-Cpp/include/pango- 1.0 -IC:/Dev-Cpp/include/atk-1.0     -fno-access-control -fexceptions -fverbose-asm -pg -g3

In file included from C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:23,
                 from C:/Dev-Cpp/include/gtk-2.0/gdk/gdk.h:30,
                 from C:/Dev-Cpp/include/gdkmm-2.4/gdkmm/types.h:29,
                 from C:/Dev-Cpp/include/gdkmm-2.4/gdkmm.h:27,
                 from C:/Dev-Cpp/include/gtkmm-2.4/gtkmm.h:30,
                 from main.cpp:1:
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcolor.h:30:19: cairo.h: No such file or directory
In file included from C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:25,
                 from C:/Dev-Cpp/include/gtk-2.0 /gdk/gdk.h:30,
                 from C:/Dev-Cpp/include/gdkmm-2.4/gdkmm/types.h:29,
                 from C:/Dev-Cpp/include/gdkmm-2.4/gdkmm.h:27,
                 from C:/Dev-Cpp/include/gtkmm-2.4/gtkmm.h:30,
                 from main.cpp:1:
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:62: error: variable or field `pango_cairo_update_context' declared void
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:62: error: `cairo_t' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:62: error: `cr' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:63: error: expected primary-_expression_ before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:63: error: `context' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:63: error: initializer _expression_ list treated as compound _expression_
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:66: error: expected `,' or `...' before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:66: error: ISO C++ forbids declaration of `cairo_font_options_t' with no type
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:67: error: expected init-declarator before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:67: error: expected `,' or `;' before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:75: error: `cairo_t' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:75: error: `cr' was not declared in this scope
C:/Dev-Cpp/include/pango- 1.0/pango/pangocairo.h:76: error: variable or field `pango_cairo_update_layout' declared void
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:76: error: `cairo_t' was not declared in this scope
C:/Dev-Cpp/include/pango- 1.0/pango/pangocairo.h:76: error: `cr' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:77: error: expected primary-_expression_ before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:77: error: `layout' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:77: error: initializer _expression_ list treated as compound _expression_
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:82: error: variable or field `pango_cairo_show_glyph_string' declared void
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:82: error: `cairo_t' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:82: error: `cr' was not declared in this scope
C:/Dev-Cpp/include/pango- 1.0/pango/pangocairo.h:83: error: expected primary-_expression_ before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:83: error: `font' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0 /pango/pangocairo.h:84: error: expected primary-_expression_ before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:84: error: `glyphs' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0 /pango/pangocairo.h:84: error: initializer _expression_ list treated as compound _expression_
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:85: error: variable or field `pango_cairo_show_layout_line' declared void
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:85: error: `cairo_t' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:85: error: `cr' was not declared in this scope
C:/Dev-Cpp/include/pango- 1.0/pango/pangocairo.h:86: error: expected primary-_expression_ before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:86: error: `line' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0 /pango/pangocairo.h:86: error: initializer _expression_ list treated as compound _expression_
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:87: error: variable or field `pango_cairo_show_layout' declared void
C:/Dev-Cpp/include/pango- 1.0/pango/pangocairo.h:87: error: `cairo_t' was not declared in this scope

C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:87: error: `cr' was not declared in this scope

C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:88: error: expected primary-_expression_ before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:88: error: `layout' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:88: error: initializer _expression_ list treated as compound _expression_
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:90: error: variable or field `pango_cairo_show_error_underline' declared void
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:90: error: `cairo_t' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:90: error: `cr' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:91: error: expected primary-_expression_ before "double"

C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:92: error: expected primary-_expression_ before "double"
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:93: error: expected primary-_expression_ before "double"

C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:94: error: expected primary-_expression_ before "double"
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:94: error: initializer _expression_ list treated as compound _expression_
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:99: error: variable or field `pango_cairo_glyph_string_path' declared void
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:99: error: `cairo_t' was not declared in this scope

C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:99: error: `cr' was not declared in this scope

C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:100: error: expected primary-_expression_ before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:100: error: `font' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:101: error: expected primary-_expression_ before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:101: error: `glyphs' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:101: error: initializer _expression_ list treated as compound _expression_
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:102: error: variable or field `pango_cairo_layout_line_path' declared void

C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:102: error: `cairo_t' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:102: error: `cr' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:103: error: expected primary-_expression_ before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:103: error: `line' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:103: error: initializer _expression_ list treated as compound _expression_
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:104: error: variable or field `pango_cairo_layout_path' declared void
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:104: error: `cairo_t' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:104: error: `cr' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:105: error: expected primary-_expression_ before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:105: error: `layout' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:105: error: initializer _expression_ list treated as compound _expression_
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:107: error: variable or field `pango_cairo_error_underline_path' declared void
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:107: error: `cairo_t' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:107: error: `cr' was not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:108: error: expected primary-_expression_ before "double"
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:109: error: expected primary-_expression_ before "double"
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:110: error: expected primary-_expression_ before "double"
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:111: error: expected primary-_expression_ before "double"
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:111: error: initializer _expression_ list treated as compound _expression_
In file included from C:/Dev-Cpp/include/gtk-2.0/gdk/gdk.h:30,
                 from C:/Dev-Cpp/include/gdkmm-2.4/gdkmm/types.h:29,
                 from C:/Dev-Cpp/include/gdkmm-2.4/gdkmm.h:27,
                 from C:/Dev-Cpp/include/gtkmm- 2.4/gtkmm.h:30,
                 from main.cpp:1:
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:29: error: expected constructor, destructor, or type conversion before '*' token
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:29: error: expected `,' or `;' before '*' token
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:31: error: variable or field `gdk_cairo_set_source_color' declared void
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:31: error: `cairo_t' was not declared in this scope
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:31: error: `cr' was not declared in this scope

C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:32: error: expected primary-_expression_ before '*' token
C:/Dev-Cpp/include/gtk- 2.0/gdk/gdkcairo.h:32: error: `color' was not declared in this scope

C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:32: error: initializer _expression_ list treated as compound _expression_
C:/Dev-Cpp/include/gtk-2.0 /gdk/gdkcairo.h:33: error: variable or field `gdk_cairo_set_source_pixbuf' declared void
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:33: error: `cairo_t' was not declared in this scope
C:/Dev-Cpp/include/gtk-2.0 /gdk/gdkcairo.h:33: error: `cr' was not declared in this scope
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:34: error: expected primary-_expression_ before '*' token
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:34: error: `pixbuf' was not declared in this scope
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:35: error: expected primary-_expression_ before "double"
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:36: error: expected primary-_expression_ before "double"
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:36: error: initializer _expression_ list treated as compound _expression_
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:37: error: variable or field `gdk_cairo_set_source_pixmap' declared void
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:37: error: `cairo_t' was not declared in this scope
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:37: error: `cr' was not declared in this scope
C:/Dev-Cpp/include/gtk- 2.0/gdk/gdkcairo.h:38: error: expected primary-_expression_ before '*' token
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:38: error: `pixmap' was not declared in this scope
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:39: error: expected primary-_expression_ before "double"
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:40: error: expected primary-_expression_ before "double"
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:40: error: initializer _expression_ list treated as compound _expression_
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:42: error: variable or field `gdk_cairo_rectangle' declared void
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:42: error: `cairo_t' was not declared in this scope
C:/Dev-Cpp/include/gtk- 2.0/gdk/gdkcairo.h:42: error: `cr' was not declared in this scope
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:43: error: expected primary-_expression_ before '*' token
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:43: error: `rectangle' was not declared in this scope

C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:43: error: initializer _expression_ list treated as compound _expression_
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:44: error: variable or field `gdk_cairo_region' declared void
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:44: error: `cairo_t' was not declared in this scope
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:44: error: `cr' was not declared in this scope
C:/Dev-Cpp/include/gtk- 2.0/gdk/gdkcairo.h:45: error: expected primary-_expression_ before '*' token
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:45: error: `region' was not declared in this scope
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:45: error: initializer _expression_ list treated as compound _expression_

In file included from C:/Dev-Cpp/include/gtk-2.0/gdk/gdk.h:35,

                 from C:/Dev-Cpp/include/gdkmm-2.4/gdkmm/types.h:29,
                 from C:/Dev-Cpp/include/gdkmm-2.4/gdkmm.h:27,
                 from C:/Dev-Cpp/include/gtkmm- 2.4/gtkmm.h:30,
                 from main.cpp:1:
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkdrawable.h:196: error: ISO C++ forbids declaration of `cairo_surface_t' with no type
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkdrawable.h:196: error: expected `;' before '*' token

In file included from C:/Dev-Cpp/include/gtk-2.0/gdk/gdk.h:50,

                 from C:/Dev-Cpp/include/gdkmm-2.4/gdkmm/types.h:29,
                 from C:/Dev-Cpp/include/gdkmm-2.4/gdkmm.h:27,
                 from C:/Dev-Cpp/include/gtkmm- 2.4/gtkmm.h:30,
                 from main.cpp:1:
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkscreen.h:51: error: ISO C++ forbids declaration of `cairo_font_options_t' with no type
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkscreen.h:51: error: expected `;' before '*' token

C:/Dev-Cpp/include/gtk-2.0/gdk/gdkscreen.h:107: error: expected `,' or `...' before '*' token
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkscreen.h:107: error: ISO C++ forbids declaration of `cairo_font_options_t' with no type
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkscreen.h:108: error: expected init-declarator before '*' token
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkscreen.h:108: error: expected `,' or `;' before '*' token

make.exe: *** [main.o] Error 1

Execution terminated
~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~


What am I doing wrong??


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