NetLinx Pre-Processor Error: Could not find the include file
travis
Junior Member
What gives guys? I have two include files one directory up from my project:
../includes/blahblah.axi
It works fine in these two other workspaces, but in one work space I get the error when I compile. If I do Build workspace, it works fine. I tried removing them from the system and re-adding them. My include line looks like this
INCLUDE'blahblah'
ERROR: Z:\Rev11.axs(22)NetLinx Pre-Processor Error: Could not find the include file blahblah.AXI
../includes/blahblah.axi
It works fine in these two other workspaces, but in one work space I get the error when I compile. If I do Build workspace, it works fine. I tried removing them from the system and re-adding them. My include line looks like this
INCLUDE'blahblah'
ERROR: Z:\Rev11.axs(22)NetLinx Pre-Processor Error: Could not find the include file blahblah.AXI
Comments
-
make sure the INCLUDE statement appears before any variables, devices, constants, functions etc. declared in the include get initialized. I normally put all my includes before DEFINE_START
-
Make sure the system you are compiling is set as the active system in your workspace. When you add an include to your system in NS3 it is added to the compilers include path, if it's not there (or you have a different system selected) and it isn't in a global include path (specified in preference > netlinx compiler > include) then the compiler won't be able to find it.
-
also make sure the Master source code IS the file you're trying to compile. I've run into this before, if you don't do a SAVE FILE REVISION and just a straight SAVE AS... you can then forget to add the changed Source file back to the system.
-
The newest version of NS scrambles workspaces sometimes by adding the project folder to the path stored, even if not appropriate. Check the properties of your include.
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