Page 1 of 1
[NXC] Unexplainable Error (at least for me)
Posted: 21 Mar 2012, 14:56
by deaeod
These errors have stumped me for a day now and i cant seem to make any progress as to whats causing them. I know it has something to do with function declarations (commenting out the header includes in ChairSort.nxc, except for ChairSortHeader.nxc fixes the errors).
Any ideas?
Attached the code and an image of the errors.
EDIT: Fixed the descriptions of the attachments.
Re: [NXC] Unexplainable Error (at least for me)
Posted: 21 Mar 2012, 17:02
by HaWe
I would first of all suggest to write 1 complete nxc file without any included header file.
To my experience it's nearly impossible to debug a NXC project consisting of a dozen files.
My suggestion:
Always start with 1 file.
If the program once will run like it should and you need to have some header files for other projects: make some headers of the most useful functions.
Re: [NXC] Unexplainable Error (at least for me)
Posted: 21 Mar 2012, 18:06
by mcsummation
ChairSortMotorControlHeader.nxc has the wrong #ifdef label. Therefore, when it gets to ChairSortMotorControl.nxc it doesn't include the actual definition of the routines.
Re: [NXC] Unexplainable Error (at least for me)
Posted: 22 Mar 2012, 00:57
by deaeod
Well thats embarrassing. Thanks for catching that.