I haven't read all the replies, so perhaps the issue has been resolved.Hey, @nsaspook, I'm working on a PIC project in C. I feel icky all over.
In any case, I've got this code to declare and initialize an array of strings:
The code compiles and runs as expected, but I get this compiler warning:C:const char * messages[] = { "Line 1 Init msg", //m_init1 "Line 2 Init msg ", //m_init2 " " //m_blank };
What the heck does this mean?
Is it possible that this header file is getting included more than once during the compilation process?
In general, it is good practice to deal with this by putting the following code (or its newer equivalent) in each header file.
#ifndef MESSAGES_H
#define MESSAGES_H
// Your header file contents
#endif