GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GTKmm on WinXP

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
Jamiil
Familiar Face


Joined: 22 Sep 2005
Posts: 20

PostPosted: Fri Nov 04, 2005 4:22 pm    Post subject: GTKmm on WinXP Reply with quote

Hello folks!
I have just installed Dev-CPP; the one that includes MinGW-CPP, GTK and GTKmm under the 'C:\GnuWin32' subdirectory. When compiling a simple GTKmm "Hello World" program I get the following errors (95 to be specific).
I have provided all the information I thought to be necessary to get a good grip of the problem, however, if you need more information let me know.

Specks
~~~~~
System:
WinXP - MINGWIN32-g++=3.4.2 - GTK+=2.8.6 - GTKmm=2.6.2-1
GTKmm params:
GTKmm 2.4 --cflags (Project Options -> Parameter -> Compiler)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-IC:/GnuWin32/include/gtkmm-2.4 -IC:/GnuWin32/lib/gtkmm-2.4/include -IC:/GnuWin32/include/glibmm-2.4 -IC:/GnuWin32/lib/glibmm-2.4/include -IC:/GnuWin32/include/gdkmm-2.4 -IC:/GnuWin32/lib/gdkmm-2.4/include -IC:/GnuWin32/include/pangomm-1.4 -IC:/GnuWin32/include/atkmm-1.6 -IC:/GnuWin32/include/gtk-2.0 -IC:/GnuWin32/include/sigc++-2.0 -IC:/GnuWin32/lib/sigc++-2.0/include -IC:/GnuWin32/include/glib-2.0 -IC:/GnuWin32/lib/glib-2.0/include -IC:/GnuWin32/lib/gtk-2.0/include -IC:/GnuWin32/include/pango-1.0 -IC:/GnuWin32/include/atk-1.0


GTKmm 2.4 --libs (Project Options -> Parameter -> Linker)
~~~~~~~~~~~~~~~~
-LC:/GnuWin32/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


Error:
Compiler: Default compiler
Building Makefile: "C:\Jamiil\dev\c++\gtkmm\Makefile.win"
Executing make clean
rm -f main.o Jaime.exe

g++.exe -c main.cpp -o main.o -I"C:/GnuWin32/INCLUDE" -I"C:/GnuWin32/INCLUDE/GTK-2.0" -I"C:/GnuWin32/INCLUDE/GLIB-2.0" -I"C:/GnuWin32/INCLUDE/PANGO-1.0" -I"C:/GnuWin32/INCLUDE/ATK-1.0" -I"C:/GnuWin32/INCLUDE/GTKGLEXT-1.0" -I"C:/GnuWin32/LIB/GTK-2.0/INCLUDE" -I"C:/GnuWin32/LIB/GLIB-2.0/INCLUDE" -I"C:/GnuWin32/LIB/GTKGLEXT-1.0/INCLUDE" -I"C:/GnuWin32/INCLUDE/LIBGLADE-2.0" -I"C:/GnuWin32/INCLUDE/LIBXML2" -IC:/GnuWin32/include/gtkmm-2.4 -IC:/GnuWin32/lib/gtkmm-2.4/include -IC:/GnuWin32/include/glibmm-2.4 -IC:/GnuWin32/lib/glibmm-2.4/include -IC:/GnuWin32/include/gdkmm-2.4 -IC:/GnuWin32/lib/gdkmm-2.4/include -IC:/GnuWin32/include/pangomm-1.4 -IC:/GnuWin32/include/atkmm-1.6 -IC:/GnuWin32/include/gtk-2.0 -IC:/GnuWin32/include/sigc++-2.0 -IC:/GnuWin32/lib/sigc++-2.0/include -IC:/GnuWin32/include/glib-2.0 -IC:/GnuWin32/lib/glib-2.0/include -IC:/GnuWin32/lib/gtk-2.0/include -IC:/GnuWin32/include/pango-1.0 -IC:/GnuWin32/include/atk-1.0

In file included from C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:23,
from C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdk.h:30,
from C:/GnuWin32/include/gdkmm-2.4/gdkmm/types.h:28,
from C:/GnuWin32/include/gdkmm-2.4/gdkmm.h:27,
from C:/GnuWin32/include/gtkmm-2.4/gtkmm.h:30,

from main.cpp:1:
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcolor.h:30:19: cairo.h: No such file or directory
In file included from C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:25,
from C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdk.h:30,

from C:/GnuWin32/include/gdkmm-2.4/gdkmm/types.h:28,
from C:/GnuWin32/include/gdkmm-2.4/gdkmm.h:27,
from C:/GnuWin32/include/gtkmm-2.4/gtkmm.h:30,
from main.cpp:1:
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:62: error: variable or field `pango_cairo_update_context' declared void
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:62: error: `cairo_t' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:62: error: `cr' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:63: error: expected primary-expression before '*' token
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:63: error: `context' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:63: error: initializer expression list treated as compound expression
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:66: error: expected `,' or `...' before '*' token

C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:66: error: ISO C++ forbids declaration of `cairo_font_options_t' with no type

C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:67: error: expected init-declarator before '*' token
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:67: error: expected `,' or `;' before '*' token

C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:75: error: `cairo_t' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:75: error: `cr' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:76: error: variable or field `pango_cairo_update_layout' declared void

C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:76: error: `cairo_t' was not declared in this scope

C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:76: error: `cr' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:77: error: expected primary-expression before '*' token
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:77: error: `layout' was not declared in this scope

C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:77: error: initializer expression list treated as compound expression

C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:82: error: variable or field `pango_cairo_show_glyph_string' declared void
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:82: error: `cairo_t' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:82: error: `cr' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:83: error: expected primary-expression before '*' token
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:83: error: `font' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:84: error: expected primary-expression before '*' token
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:84: error: `glyphs' was not declared in this scope

C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:84: error: initializer expression list treated as compound expression

C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:85: error: variable or field `pango_cairo_show_layout_line' declared void
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:85: error: `cairo_t' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:85: error: `cr' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:86: error: expected primary-expression before '*' token
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:86: error: `line' was not declared in this scope

C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:86: error: initializer expression list treated as compound expression
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:87: error: variable or field `pango_cairo_show_layout' declared void
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:87: error: `cairo_t' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:87: error: `cr' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:88: error: expected primary-expression before '*' token

C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:88: error: `layout' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:88: error: initializer expression list treated as compound expression
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:93: error: variable or field `pango_cairo_glyph_string_path' declared void
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:93: error: `cairo_t' was not declared in this scope

C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:93: error: `cr' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:94: error: expected primary-expression before '*' token
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:94: error: `font' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:95: error: expected primary-expression before '*' token
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:95: error: `glyphs' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:95: error: initializer expression list treated as compound expression

C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:96: error: variable or field `pango_cairo_layout_line_path' declared void
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:96: error: `cairo_t' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:96: error: `cr' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:97: error: expected primary-expression before '*' token
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:97: error: `line' was not declared in this scope

C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:97: error: initializer expression list treated as compound expression
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:98: error: variable or field `pango_cairo_layout_path' declared void
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:98: error: `cairo_t' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:98: error: `cr' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:99: error: expected primary-expression before '*' token

C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:99: error: `layout' was not declared in this scope
C:/GnuWin32/INCLUDE/PANGO-1.0/pango/pangocairo.h:99: error: initializer expression list treated as compound expression
In file included from C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdk.h:30,
from C:/GnuWin32/include/gdkmm-2.4/gdkmm/types.h:28,
from C:/GnuWin32/include/gdkmm-2.4/gdkmm.h:27,
from C:/GnuWin32/include/gtkmm-2.4/gtkmm.h:30,
from main.cpp:1:
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:29: error: expected constructor, destructor, or type conversion before '*' token
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:29: error: expected `,' or `;' before '*' token

C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:31: error: variable or field `gdk_cairo_set_source_color' declared void
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:31: error: `cairo_t' was not declared in this scope
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:31: error: `cr' was not declared in this scope
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:32: error: expected primary-expression before '*' token
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:32: error: `color' was not declared in this scope

C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:32: error: initializer expression list treated as compound expression
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:33: error: variable or field `gdk_cairo_set_source_pixbuf' declared void

C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:33: error: `cairo_t' was not declared in this scope

C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:33: error: `cr' was not declared in this scope
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:34: error: expected primary-expression before '*' token

C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:34: error: `pixbuf' was not declared in this scope
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:35: error: expected primary-expression before "double"
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:36: error: expected primary-expression before "double"
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:36: error: initializer expression list treated as compound expression
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:38: error: variable or field `gdk_cairo_rectangle' declared void
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:38: error: `cairo_t' was not declared in this scope
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:38: error: `cr' was not declared in this scope

C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:39: error: expected primary-expression before '*' token
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:39: error: `rectangle' was not declared in this scope
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:39: error: initializer expression list treated as compound expression
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:40: error: variable or field `gdk_cairo_region' declared void

C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:40: error: `cairo_t' was not declared in this scope

C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:40: error: `cr' was not declared in this scope
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:41: error: expected primary-expression before '*' token
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:41: error: `region' was not declared in this scope
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkcairo.h:41: error: initializer expression list treated as compound expression

In file included from C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdk.h:35,
from C:/GnuWin32/include/gdkmm-2.4/gdkmm/types.h:28,
from C:/GnuWin32/include/gdkmm-2.4/gdkmm.h:27,
from C:/GnuWin32/include/gtkmm-2.4/gtkmm.h:30,
from main.cpp:1:
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkdrawable.h:196: error: ISO C++ forbids declaration of `cairo_surface_t' with no type
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkdrawable.h:196: error: expected `;' before '*' token

In file included from C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdk.h:50,
from C:/GnuWin32/include/gdkmm-2.4/gdkmm/types.h:28,
from C:/GnuWin32/include/gdkmm-2.4/gdkmm.h:27,
from C:/GnuWin32/include/gtkmm-2.4/gtkmm.h:30,
from main.cpp:1:
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkscreen.h:51: error: ISO C++ forbids declaration of `cairo_font_options_t' with no type
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkscreen.h:51: error: expected `;' before '*' token

C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkscreen.h:106: error: expected `,' or `...' before '*' token
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkscreen.h:106: error: ISO C++ forbids declaration of `cairo_font_options_t' with no type
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkscreen.h:107: error: expected init-declarator before '*' token
C:/GnuWin32/INCLUDE/GTK-2.0/gdk/gdkscreen.h:107: error: expected `,' or `;' before '*' token

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

Execution terminated
Back to top
Jamiil
Familiar Face


Joined: 22 Sep 2005
Posts: 20

PostPosted: Mon Nov 07, 2005 10:51 pm    Post subject: Reply with quote

I fixed this problem, thank you very much!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP