Mon Jul 11, 2022 8:20 pm
Hello
I'm integrating the Desktop Video SDK into an existing Objective C application and am having some odd difficulties getting everything to play nicely
I suspect I am doing something dumb.. What I'm finding is, for example:
- I have a header file: "BMDevice.h"
- after #pragma once I "#include "DecklinkAPI.h"
- I declare my class: "@interface BMDevice : NSObject"
- I create a instance variable "IDeckLink *device;"
I get an error "Unknown type IDeckLink"
Ah I think,
- I remove the #include for the DecklinkAPI.h
- I do a forward declaration of the class - "@class IDeckLink;"
- I add "#include "DecklinkAPI.h" to the top of my implementation file (.mm)
Now when I try to access an object of the IDecklink class in the .mm file I get the error "incomplete definition of type 'IDecklink'"
I am pretty sure I am missing something obvious - I have tried various iterations on the #import/#include variety but can't seem to get it to line up!