Problem with forward referencing.

About Monkey 2 Forums Monkey 2 Programming Help Problem with forward referencing.

This topic contains 2 replies, has 2 voices, and was last updated by  Jesse 2 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3199

    Jesse
    Participant

    I got a program that gives me an error when I try to pass a pointer to a method but only when I pass one of its fields:

    to this method on another Class:

    and I get this error:

    /Users/ayoitseve/Desktop/monkeypatrol/monkeypatrol.buildv1.0.3/build_cache/desktop_debug_macos/monkeypatrol_src_2entity.h:11:8: note: forward declaration of ‘t_default_PVector2D’
    struct t_default_PVector2D;
    ^
    1 error generated.
    ***** Fatal mx2cc error *****

    Internal mx2cc build error

    If I pass the object  I don’t get the error only if I pass the field:

    this does not give me an error and works fine.

    my question is. Is this correct? or is this a bug with MX2?

    #3200

    Mark Sibly
    Keymaster

    Anything that craps out the c++ compiler is a bug – please post an issue at github.

    #3203

    Jesse
    Participant

    I did. Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.