spawn.h compile errors



hi again

First of all, thanks for the very swift reply regarding my problems
using ms vc 6. Now, two month later, I'm back at it with ms visual
studio .net 2003, and now it should be feasable to combine gtk, msvc7.1
and c++.

I have fetched the latest packages from
http://www.pcpm.ucl.ac.be/~gustin/win32_ports/ and
http://gladewin32.sourceforge.net/. It is files gtkmm-devel-2.6.1-1.exe
and gtk-win32-devel-2.6.4-rc3.exe.

It appears I have a similar problem as Caspar MacRae
(http://mail.gnome.org/archives/gtkmm-list/2005-April/msg00137.html)

My errors are
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(107) : error C2143: syntax
error : missing '}' before 'constant'
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(107) : error C2059: syntax
error : 'constant'
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(125) : error C2143: syntax
error : missing ';' before '}'
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(125) : error C2238: unexpected
token(s) preceding ';'
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(127) : error C2146: syntax
error : missing ')' before identifier 'error_code'
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(127) : error C2146: syntax
error : missing ';' before identifier 'error_code'
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(127) : error C2501:
'error_code' : missing storage-class or type specifiers
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(127) : error C2143: syntax
error : missing ';' before '&'
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(127) : error C2501:
'Glib::ustring' : missing storage-class or type specifiers
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(127) : warning C4228:
nonstandard extension used : qualifiers after comma in declarator list
are ignored
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(127) : error C2059: syntax
error : ')'
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(127) : error C2501:
'error_message' : missing storage-class or type specifiers
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(127) : error C2530:
'Glib::error_message' : references must be initialized
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(128) : error C2143: syntax
error : missing ')' before '*'
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(128) : error C2143: syntax
error : missing ';' before '*'
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(128) : error C2071: 'GError' :
illegal storage class
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(128) : error C2059: syntax
error : ')'
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(128) : error C2501: 'gobject' :
missing storage-class or type specifiers
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(129) : error C2146: syntax
error : missing ';' before identifier 'code'
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(129) : error C2501: 'Code' :
missing storage-class or type specifiers
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(129) : error C2371:
'Glib::Code' : redefinition; different basic types
        C:\GTK\include\glibmm-2.4\glibmm\spawn.h(127) : see declaration
of 'Glib::Code'
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(129) : error C2270: 'code' :
modifiers not allowed on nonmember functions
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(132) : error C2059: syntax
error : 'private'
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(133) : error C2676: binary '*'
: 'Glib::SpawnError' does not define this operator or a conversion to a
type acceptable to the predefined operator
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(133) : error C2182:
'throw_func' : illegal use of type 'void'
C:\GTK\include\glibmm-2.4\glibmm\spawn.h(133) : fatal error C1903:
unable to recover from previous error(s); stopping compilation

I suppose I do something wrong, but compilation errors in the supplied
header files ... ?!

Could it be a ms vc thing? Perhaps the wrong header files are included
somehow
Also, the include files are apparently from glibmm-2.4 and the gtk files
are said to include glib 2.6.3 (how to check?) 

Suggestions are welcome.


Regards
Morten Bo Nielsen




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