#16 ikvm runtime compile error

closed
nobody
None
5
2005-03-02
2005-03-02
YunSong Hwang
No

/home/hys545/ikvm/runtime/runtime.build(6,14): Element <includes... /
> for <fileset... /> is deprecated. Use <include> element instead.
[csc] Compiling 22 files to '/home/hys545/ikvm/bin/IKVM.
Runtime.dll'.
[csc] /home/hys545/ikvm/runtime/JniInterface.cs(900) error
CS0213: You can not fix an already fixed expression
[csc] /home/hys545/ikvm/runtime/TypeWrapper.cs(3585)
warning CS0219: The variable 'tryBlock' is assigned but its value is
never used
[csc] Compilation failed: 1 error(s), 1 warnings
------------------
mono-41355(cvs)
ikvm-2004-3-2 cvs

Discussion

  • Logged In: YES
    user_id=668099

    The solution to this should be obvious. Just look at the code
    the compiler complains about:
    #if __MonoCS__
    // MONOBUG mcs requires this bogus
    fixed construct (and Microsoft doesn't allow it)
    fixed(void** p = &pJavaVM-
    >firstVtableEntry) { pJavaVM->vtable = p; }
    #else
    pJavaVM->vtable =
    &pJavaVM->firstVtableEntry;
    #endif

    This mcs bug was fixed in svn, but it isn't yet fixed in the
    most recent Mono release (1.1.4) so the workaround has to
    stay in for a while. If you use Mono-svn, remove the
    workaround by hand.

     
    • status: open --> closed