Home AMX User Forum NetLinx Studio

Compiling error with include files

I'm sure this is something simple, but...

If I use an include that references a device defined in the main program, I get a compile error saying that this device has not been defined.

Is there a way to force the main to compile first, and then the includes? Or am I missing something simple?

Thanks,

Doug

Comments

  • ColzieColzie Posts: 470
    Make sure your #INCLUDE statement is after your device definition. You don't need to compile the AXI independent of the AXS, the AXI gets "pulled" into the AXS file.
  • ericmedleyericmedley Posts: 4,177
    Colzie wrote: »
    Make sure your #INCLUDE statement is after your device definition. You don't need to compile the AXI independent of the AXS, the AXI gets "pulled" into the AXS file.

    This is where you learn the magic stack of includes that seems to work. :D

    This is one of the reasons I wanted a new SUPER_INCLUDE that would force a repeat compile before reporting errors.
Sign In or Register to comment.