• Acolyte of the Butterfly
    Acolyte of the Butterfly
    Leif
    Posts: 111 from 2006/5/31
    From: Sweden
    Quote:

    Leif wrote:
    Quote:

    r-tea wrote:

    I can't compile it, because I got an error message:
    Code:
    Ram Disk:> ecx HD1:Development/Examples/SoftTimerTest.e amigaos ddir=ram:
    ECX 2.3.1 WIP (MorphOS,PPC) by Leif Salomonsson (c) 2002-2013.
    ECX 2.3.1 WIP MorphOS,PPC.
    Lexical and syntax analysis..
    Targeting 'AmigaOS,68K' executable.
    Parsing and generating..
    ERROR: unknown method "softtimer"
    Procedure: main
    Line 5: NEW st.softtimer()


    I'm sure this is not about the module path. I do have it in emodules:softtimer_oo.m
    Why it don't recognize the softtimer object?



    The automatic glue code between PPC and 68k code only works for procedures, not methods. So in this case the module containing the method would need to be ompiled for MorphOS first. The module conversion code simply drops methods if they are not compiled for same target.

    Hmm.. I misread there. Seems all is compiled for 68k. Not sure then :)
    It really shoud work.


  • »07.03.16 - 21:06
    Profile