0

After changing
- #import <Cocoa/Cocoa.h> to #import <UIKit/UIKit.h>
- "pi" to "M_PI"
and disabling ARC for the GCMathParser files, I get the following error: (multiple places)

Cast of C pointer type "void*" to Objective-C pointer type "GCMathParser*" requires a bridged cast

What do I have to do?

Thanks

Kazuki Sakamoto
  • 13,929
  • 2
  • 34
  • 96
bursyllac
  • 413
  • 1
  • 5
  • 11

1 Answers1

1

ARC doesn't let you hide objects behind untyped pointers -- it needs to know which pointers are objects in order to do its magic. If you're dealing with a framework that relies heavily on that trick, you may have to do a fair amount of re-architecting it. Not fun.

You might try DDMathParser instead; it's functionally similar, more extensible, and supports ARC and iOS "out of the box".

rickster
  • 124,678
  • 26
  • 272
  • 326