This is a GCC error, and this means that the QTVisualContextRef token QTVisualContextRef not known to the compiler. This is a pretty bad error message. You need to add the correct #import , which the compiler will teach about this type. This is part of the QuickTime environment, so you probably want to
#import <QuickTime/QuickTime.h>
source share