Hi,
while compiling FlexiSheet I get this:
Compiling file FSObject.m ...
In file included from FSObject.m:43:0:
/usr/lib/gcc/i486-linux-gnu/4.6/include/objc/objc-api.h:46:3: error:
#error You
can not include both objc/objc-api.h and objc/runtime.h. Include
objc/objc-api.h for the traditional GNU Objective-C Runtime API and
objc/runtime.h for the modern one.
In file included from FSObject.m:43:0:
/usr/lib/gcc/i486-linux-gnu/4.6/include/objc/objc-api.h:69:8: error:
redefinition of âstruct objc_method_descriptionâ
/usr/lib/gcc/i486-linux-gnu/4.6/include/objc/runtime.h:87:8: note:
originally defined here
In file included from FSObject.m:43:0:
/usr/lib/gcc/i486-linux-gnu/4.6/include/objc/objc-api.h:120:28: error:
conflicting types for âMethodâ
/usr/lib/gcc/i486-linux-gnu/4.6/include/objc/runtime.h:70:29: note:
previous declaration of âMethodâ was here
In file included from FSObject.m:43:0:
/usr/lib/gcc/i486-linux-gnu/4.6/include/objc/objc-api.h:174:30: error:
conflicting types for âCategoryâ
/usr/lib/gcc/i486-linux-gnu/4.6/include/objc/runtime.h:75:31: note:
previous declaration of âCategoryâ was here
I'm using the traditional runtime and this file used to compile fine
(and on Apple too)
what is realy the problem? I am not including objc/runtime explicitely.
41 #import "FSObject.h"
42 #import <objc/objc.h>
43 #import <objc/objc-api.h>
44 #ifdef __APPLE__
45 #import <objc/objc-class.h>
46 #endif