I tried to import a C++ library into XCode, I renamed the .cpp to .mm but when I try to compile it shows me errors like this:
DateOps.h:23: error: expected '=', ',', ';', 'asm' or '_attribute_' before 'DateOps'
start of DateOps.h file
#if !defined( DATE_OPS__H )
#define DATE_OPS__H
typedef int MonthDays[13];
typedef long YearEndDays[2];
class DateOps {
public:
enum CalendarType {
T_GREGORIAN = 0,
T_JULIAN = 1,
};
...

DateOps.hand also how you are including it.