c++ framework
Can you explain me why? Are there any compiling conflicts between obj-c and c++? Are there some particular configurations to set to make it work?
macbook pro, xcode 2.4 Mac OS X (10.4.8)
I noticed that header files (where these
errors are reported) are considered c headers, not
c++ headers... Could my problem be this?
Then I imported my framework into
myApp (compiled as obj-c++), but same errors (in my
specific case, somewhat about typedef enum...).
error: conflicting declaration 'typedef int BOOL'
error: 'BOOL' has a previous declaration as 'typedef
signed char BOOL'
// ok, redeclaration...
error: expected identifier before numeric constant
error: expected `}' before numeric constant
error: expected unqualified-id before numeric
constant
error: expected constructor, destructor, or type
conversion before ';' token
error: 'PrefType' does not name a type
// these are about the line:
// typedef enum { TYPE_INT, TYPE_STRING, TYPE_FLOAT,
TYPE_BOOL } PrefType;
c++ framework