I’m trying to integrate CocoaLumberjack into a project that I inherited. I’ve seen it work fine in the past with other projects, but for some reason, I’m getting several errors in CocoaLumberjack’s code. Examples include:
- Suddenly I’m getting “Assigning to ‘void *’ from incompatible type ‘const char [1]'” compile errors on struct properties when passing in a C string.
- I’m getting warnings on C arrays of C strings saying “Conversion from string literal to ‘char *’ is depreciated.
- “class” has suddenly become a keyword (the lowercase version)
Has anyone ever seen anything similar to this? The build settings on the project have definitely been changed a bit, but I’m not sure what was done.
Any chance you’re accidentally compiling the code as C++/Obj-C++? The third point there with
classbecoming a keyword makes that sound plausible.