upgrade to gtkmm2.4 : examples won't compile




Hi,

	I'm trying to upgrade from gtkmm-2.2 to gtkmm-2.4, on suse 9.1, so
downloaded and installed the following (from a suse 9.2 mirror):

libsigc++20-examples-2.0.6-1.i586.rpm
libsigc++20-devel-2.0.6-1.i586.rpm
libsigc++20-2.0.6-1.i586.rpm

gtkmm24-doc-2.4.8-1.i586.rpm
gtkmm24-devel-2.4.8-1.i586.rpm
gtkmm24-2.4.8-1.i586.rpm

glibmm-doc-2.4.5-1.i586.rpm
glibmm-devel-2.4.5-1.i586.rpm
glibmm-2.4.5-1.i586.rpm

	pkg-config has the .pc file and everything seems in place and OK, but
trying to compile an example (from the 2.4 examples) results in errors.
 E.g. :

blah:/usr/share/doc/packages/gtkmm24/doc/examples/book/helloworld # g++
-Wall helloworld.cc main.cc `pkg-config gtkmm-2.4 --libs --cflags`

In file included from /usr/include/glibmm-2.4/glibmm.h:59,
                 from /usr/include/gtkmm-2.4/gtkmm/button.h:6,
                 from helloworld.h:22,
                 from helloworld.cc:19:
/usr/include/glibmm-2.4/glibmm/spawn.h:39: error: syntax error before
`;' token
/usr/include/glibmm-2.4/glibmm/spawn.h:144: error: type specifier
omitted for
   parameter `Pid'
/usr/include/glibmm-2.4/glibmm/spawn.h:144: error: syntax error before `*'
   token
/usr/include/glibmm-2.4/glibmm/spawn.h:153: error: type specifier
omitted for
   parameter `Pid'
/usr/include/glibmm-2.4/glibmm/spawn.h:153: error: syntax error before `*'
   token
/usr/include/glibmm-2.4/glibmm/spawn.h:163: error: type specifier
omitted for
   parameter `Pid'
/usr/include/glibmm-2.4/glibmm/spawn.h:163: error: syntax error before `*'
   token
/usr/include/glibmm-2.4/glibmm/spawn.h:169: error: type specifier
omitted for
   parameter `Pid'
/usr/include/glibmm-2.4/glibmm/spawn.h:169: error: syntax error before `*'
   token
/usr/include/glibmm-2.4/glibmm/spawn.h:195: error: `Pid' was not declared in
   this scope
/usr/include/glibmm-2.4/glibmm/spawn.h:195: error: syntax error before `)'
   token
In file included from /usr/include/glibmm-2.4/glibmm.h:59,
                 from /usr/include/gtkmm-2.4/gtkmm/main.h:6,
                 from main.cc:19:
/usr/include/glibmm-2.4/glibmm/spawn.h:39: error: syntax error before
`;' token
/usr/include/glibmm-2.4/glibmm/spawn.h:144: error: type specifier
omitted for
   parameter `Pid'
/usr/include/glibmm-2.4/glibmm/spawn.h:144: error: syntax error before `*'
   token
/usr/include/glibmm-2.4/glibmm/spawn.h:153: error: type specifier
omitted for
   parameter `Pid'
/usr/include/glibmm-2.4/glibmm/spawn.h:153: error: syntax error before `*'
   token
/usr/include/glibmm-2.4/glibmm/spawn.h:163: error: type specifier
omitted for
   parameter `Pid'
/usr/include/glibmm-2.4/glibmm/spawn.h:163: error: syntax error before `*'
   token
/usr/include/glibmm-2.4/glibmm/spawn.h:169: error: type specifier
omitted for
   parameter `Pid'
/usr/include/glibmm-2.4/glibmm/spawn.h:169: error: syntax error before `*'
   token
/usr/include/glibmm-2.4/glibmm/spawn.h:195: error: `Pid' was not declared in
   this scope
/usr/include/glibmm-2.4/glibmm/spawn.h:195: error: syntax error before `)'
   token


#######

It certainly something stupid I've done or missed, and hopefully easy to
spot.  I'm completely green to gtkmm so any help would be most appreciated.


cheers,
C.



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