Home AMX User Forum NetLinx Studio

Include File error

I am sure I just having some kind of brain freeze or something, but can anyone tell me why when compiling my program I get a Syntax Error pointing to my Include files at the DEFINE_xxxxxx sections;

PROGRAM_NAME='LightingSystem1'
(***********************************************************)
(* FILE_LAST_MODIFIED_ON: 12/06/2011 AT: 14:12:01 *)
(***********************************************************)

DEFINE_CONSTANT

BTN1 = 601
BTN2 = 602
BTN3 = 603
BTN4 = 604
BTN5 = 605
BTN6 = 606
BTN7 = 607
BTN8 = 608
BTN9 = 609
BTN10 = 610
BTN11 = 611

In this instance I get errored for the DEFINE_CONSTANT line above. I have removed this axi file from the system and I get the same error on the next axi file except it is a DEFINE_EVENT line with subsequent BUTTON_EVENTs under that.

Comments

  • jjamesjjames Posts: 2,908
    If it's trickling down to each include - it's most likely something in the main file prior to the includes.
  • rmjstsrmjsts Posts: 19
    Looks like you had it somewhat. The problem was in another include file, some varibles that were being defined. I remarked them out and that fixed the problem. SO now I just ahve to figure out what in the variables caused the problem. Thanks, I just kept looking at the affected include files and could not come up with anything since these are valid statements and in the right syntax. I'll whittle it down.

    Have a great day...
  • jjamesjjames Posts: 2,908
    If you want to post the file causing issues - we can definitely help. :-) If not - no worries.
Sign In or Register to comment.