Weird NetLinx Compile Error
HARMAN_Brooks
Creative Services Manager, Harman Professional
Hello all!
I've been working in Netlinx Studio all day, and randomly on a compile I got this:
ERROR: C:\Program Files\Common Files\AMXShare\AXIs\NetLinx.axi(250): C10516: Cannot have constant on left hand side of assignment
I'm not editing this file (obviously) so i'm not sure why it would suddenly not compile. Plus, I opened up that file and there isn't any code on that line anyway.
Any idea what's going on here?
Thanks so much,
Brooks
I've been working in Netlinx Studio all day, and randomly on a compile I got this:
ERROR: C:\Program Files\Common Files\AMXShare\AXIs\NetLinx.axi(250): C10516: Cannot have constant on left hand side of assignment
I'm not editing this file (obviously) so i'm not sure why it would suddenly not compile. Plus, I opened up that file and there isn't any code on that line anyway.
Any idea what's going on here?
Thanks so much,
Brooks
Comments
-
Ah, one of those annoying non-helpful error pointers.
Your code is somewhere using a keyword defined in NetLinx.axi as a constant, and attempting to assign a value to it. Instead of pointing at your code error, it's pointed at where the keyword is defined. You are just going to have to hunt it down. When writing a program, I compile a lot along the way, just to limit where I have to search for such errors when they crop up. When I can't isolate the general area in terms of what I recently changed, I start commenting out blocks until it goes away, then looking in the block for the problem. -
This kind of error is tough.
I would venture that you have some kind of typo that in and of itself is making it through compile but it throwing everything else off.
I ran into this with a program once and it baffled me for days.
In my case I eneded up having a wrong keyword in the DEFINE_START section. I don't remember exactly what it was, but what it did was make all my non volatile and persistent variables not work during run time.
these things can be very difficult to ferret out.
I'd start by commenting out large sections of code and go through it methodically, compiling and testing. Then uncomment a section and home in on the error. (If indeed it is the problem I'm describing.) -
Thanks very much guys, found the issue.
I actually was trying to assign a value to a variable I had created that had the same name as a constant. I suppose because the constant was declared higher up in the code, It got stuck there. Thanks for your help as always!
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