So if I run my program with the implementation as .m it works fine. Just changing it to .mm causes this line…
CGContextRef myContext = [[NSGraphicsContext currentContext] graphicsPort];
to throw this error…
error: invalid conversion from 'void*' to 'CGContext*'
Anyone have any ideas why just changing that would make it blow up, or how to fix it?