I have an old C/C++ package which I am trying to compile with CygWin because it needs Motif and other X- things. Most of it compiles OK but there are some warnings due to lines like....
static String fallbackResources[] = { "Joe", ..etc.. , NULL};
I get the compiler warning: deprecated conversion from string constant to ‘String {aka char*}’
I have googled and found many suggestions to avoid this warning by changing occurrences of say "char* fred[]" to "const char* fred[]" which I have done for most of the c++ files in the package and this has worked perfectly to remove the compiler warnings.
However I am stuck with the "static String" lines since when I change them by inserting "const" before "String" it makes no difference and if I change the "String" to "const char*" the warning disappears but the program doesn't compile due to an error later on where it sends the array to another function....
cannot convert ‘const char*’ to ‘char**’ for argument ‘7’ to....
Any help would be very much appreciated.