I have a cpp header file with a construct like this:
typedef class MyType_t {
//...
public:
void method();
} MyType;
I’m trying to use it from a .mm file like this:
MyType.method();
And this causes compiler error “Unknown type name ‘MyType’; did you mean ‘MyType_t’?”
The compiler seem to be able to understand “MyType_t”, but “MyType” seems not to be supported. I known only very basic c++ and don’t know exactly what this construct is for. I just downloaded this code and have to call it from objective-c.
The problem was that I was not calling the constructor before using
MyTypeSo adding this
solved it.