Errors in my program from the GTK+ package



When compiling my program, I get error messages indicating that there is a
problem with  the GTK library. I am sure that GTK+ 2.8.x is not
responsible for this errors, but something in the way I setted up the
Parameters & Compiler options in my 'Dev-Cpp->Project Options->'. This is
what I have in the 'C++ Compiler' box:
-mms-bitfields
-IC:/Dev-Cpp/include/gtk-2.0 -IC:/Dev-Cpp/lib/gtk-2.0/include
-IC:/Dev-Cpp/include/atk-1.0 -IC:/Dev-Cpp/include/pango-1.0
-IC:/Dev-Cpp/include/glib-2.0 -IC:/Dev-Cpp/lib/glib-2.0/include

And this is what I have in the 'Linker' box
-LC:/Dev-Cpp/lib -lgtk-win32-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
-mwindows

Finally, this are the errors I get
Compiler: Default compiler
Building Makefile: "...gtk\Makefile.win"
Executing  make clean
rm -f main.o createaccount.o ../exception/exception.o Message.o  Jaime.exe

g++.exe -D__DEBUG__ -c main.cpp -o main.o
-I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -mms-bitfields
-IC:/Dev-Cpp/include/gtk-2.0 -IC:/Dev-Cpp/lib/gtk-2.0/include
-IC:/Dev-Cpp/include/atk-1.0 -IC:/Dev-Cpp/include/pango-1.0
-IC:/Dev-Cpp/include/glib-2.0 -IC:/Dev-Cpp/lib/glib-2.0/include     -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/gtk-2.0/gtk/gtk.h:31,
                 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/gtk-2.0/gtk/gtk.h:31,
                 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:93: error: variable or
field `pango_cairo_glyph_string_path' declared void
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:93: error: `cairo_t' was
not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:93: error: `cr' was not
declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:94: error: expected
primary-expression before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:94: error: `font' was not
declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:95: error: expected
primary-expression before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:95: error: `glyphs' was
not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:95: error: initializer
expression list treated as compound expression
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:96: error: variable or
field `pango_cairo_layout_line_path' declared void
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:96: error: `cairo_t' was
not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:96: error: `cr' was not
declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:97: error: expected
primary-expression before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:97: error: `line' was not
declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:97: error: initializer
expression list treated as compound expression
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:98: error: variable or
field `pango_cairo_layout_path' declared void

C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:98: error: `cairo_t' was
not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:98: error: `cr' was not
declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:99: error: expected
primary-expression before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:99: error: `layout' was
not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:99: 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/gtk-2.0/gtk/gtk.h:31,
                 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:38: error: variable or field
`gdk_cairo_rectangle' declared void
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:38: error: `cairo_t' was not
declared in this scope
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:38: error: `cr' was not declared
in this scope
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:39: error: expected
primary-expression before '*' token
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:39: error: `rectangle' was not
declared in this scope
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:39: error: initializer
expression list treated as compound expression
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:40: error: variable or field
`gdk_cairo_region' declared void
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:40: error: `cairo_t' was not
declared in this scope
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:40: error: `cr' was not declared
in this scope
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:41: error: expected
primary-expression before '*' token
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:41: error: `region' was not
declared in this scope

C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:41: 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/gtk-2.0/gtk/gtk.h:31,

                 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

What have I done wrong?!!
Thanks in advance



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