Compiling error with include files
dmenke
Junior Member
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
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
-
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.
-
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.
This is one of the reasons I wanted a new SUPER_INCLUDE that would force a repeat compile before reporting errors.
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums