[Gtk-sharp-list] Error compiling gtk#

Ales Vojacek alesv@fbl.cz
Wed, 25 Sep 2002 11:17:00 +0200


I downloaded new snapshot, but there is another error:

mcs --unsafe --target library -r System.Drawing -L ../glib -L ../pango -L
../atk -L ../gdk -r glib-s
harp.dll -r pango-sharp.dll -r atk-sharp.dll -r gdk-sharp.dll -o
gtk-sharp.dll --recurse '*.cs'

Unhandled Exception: System.TypeLoadException: Error: Illegal use of type
'void' in signature.
   at System.Reflection.RuntimeMethodInfo.InternalGetCallingConvention()
   at System.Reflection.RuntimeMethodInfo.get_CallingConvention()
   at Mono.CSharp.MemberCache.AddMethods(BindingFlags bf, Type type)
   at Mono.CSharp.MemberCache..ctor(IMemberContainer container)
   at Mono.CSharp.TypeHandle..ctor(Type type)
   at Mono.CSharp.TypeHandle.GetTypeHandle(Type t)
   at Mono.CSharp.TypeManager.MemberLookup_FindMembers(Type t, MemberTypes
mt, BindingFlags bf, Stri
ng name, Boolean& used_cache)
   at Mono.CSharp.TypeManager.RealMemberLookup(Type invocation_type, Type
queried_type, MemberTypes
mt, BindingFlags original_bf, String name)
   at Mono.CSharp.Expression.MemberLookup(EmitContext ec, Type
invocation_type, Type t, String name,
 MemberTypes mt, BindingFlags bf, Location loc)
   at Mono.CSharp.Expression.MemberLookup(EmitContext ec, Type t, String
name, Location loc)
   at Mono.CSharp.MemberAccess.DoResolve(EmitContext ec, Expression
right_side, ResolveFlags flags)
   at Mono.CSharp.MemberAccess.DoResolve(EmitContext ec)
   at Mono.CSharp.Expression.Resolve(EmitContext ec, ResolveFlags flags)
   at Mono.CSharp.Invocation.DoResolve(EmitContext ec)
   at Mono.CSharp.Expression.Resolve(EmitContext ec, ResolveFlags flags)
   at Mono.CSharp.StatementExpression.Resolve(EmitContext ec)
   at Mono.CSharp.Block.Resolve(EmitContext ec)
   at Mono.CSharp.Block.Resolve(EmitContext ec)
   at Mono.CSharp.EmitContext.EmitTopBlock(Block block, InternalParameters
ip, Location loc)
   at Mono.CSharp.MethodData.Emit(TypeContainer parent, Block block, Object
kind)
   at Mono.CSharp.PropertyBase.Emit(TypeContainer tc)
   at Mono.CSharp.TypeContainer.Emit()
   at Mono.CSharp.RootContext.EmitCode()
   at Mono.CSharp.Driver.MainDriver(String[] args)
   at Mono.CSharp.Driver.Main(String[] args)
make[1]: *** [gtk-sharp.dll] (null)
make[1]: Leaving directory `/home/alesv/mono/gtk-sharp/gtk'
make: *** [binding] Error 1
Can you help me??
Thanks Ales