MOD54415 compiler error messages
Re: MOD54415 compiler error messages
Try to clean and then rebuild your project. Maybe one of the object files is old.
-
- Posts: 192
- Joined: Mon Dec 17, 2012 6:24 am
Re: MOD54415 compiler error messages
Already did that. Cleans fine, but the errors show back up again on the next save/compile.
-
- Posts: 192
- Joined: Mon Dec 17, 2012 6:24 am
Re: MOD54415 compiler error messages
Fixed it.
One of my boolean values in my funcs.cpp file was not declared as extern. Had nothing to do with the arrays, but when I fixed that, it all went away. Thanks for the insight everyone!!!
One of my boolean values in my funcs.cpp file was not declared as extern. Had nothing to do with the arrays, but when I fixed that, it all went away. Thanks for the insight everyone!!!
-
- Posts: 192
- Joined: Mon Dec 17, 2012 6:24 am
Re: MOD54415 compiler error messages
I take that back - now all of a sudden the error message is back. Not sure why, but I'm back to square one.
Re: MOD54415 compiler error messages
I think I muddied the waters (as Dan was right to avoid) unnecessarily. The include guards prevent a different problem so I was just trying to forestall that problem. Please re-read the last paragraph of Dan's initial post. You are doing precisely what he suspected, follow his advice. If you don't understand it, most good C books will have a topic where they talk about Separate Compilation, probably in the section where they talk about the linker. If you don't have a good C book this page may help you with declare vs. define. Note that right at the bottom under Common Cases the last paragraph applies directly to what you are doing.
-
- Posts: 192
- Joined: Mon Dec 17, 2012 6:24 am
Re: MOD54415 compiler error messages
Thanks Tod,
That was a helpful page, and it would appear that I have erred. WORD ADC[16] and WORD MUX_POS[32] are defined in defs.h, which is included in every source file, and it has not compiled correctly. My mistake was that I defined it in the header and the source file instead of declaring it in the header and defining it in my source file. Thanks for clearing that up Tod, I appreciate it!! All better now!
Tony
That was a helpful page, and it would appear that I have erred. WORD ADC[16] and WORD MUX_POS[32] are defined in defs.h, which is included in every source file, and it has not compiled correctly. My mistake was that I defined it in the header and the source file instead of declaring it in the header and defining it in my source file. Thanks for clearing that up Tod, I appreciate it!! All better now!
Tony