Skip to main content
Participant
November 5, 2011
공지사항

FlashRuntimeExtensions.h parse Errors.

  • November 5, 2011
  • 1 답변
  • 1200 조회

I am working on a Native Extension for iOS applications. All seems to go well until I try to build the native code in Xcode. I get about 20 errors on FlashRuntimeExtensions.h. Parse errors.

"Parse issue: Must use 'enum' tag to refer to type 'FREResult':

The compiler wants me to place an "enum" in front of every instance of FREResult in the header file, for instance, in front of:

FREResult FREGetContextNativeData( FREContext ctx, void** nativeData );

Any ideas what might be the problem?

Isaac Rivera

이 주제는 답변이 닫혔습니다.

1 답변

November 6, 2011

Hi:

Just a guess. What is the extension of the file in which you have written your code? Is it .c or .cpp? Can you try making it .m?

Participant
November 8, 2011

Thank you for your reply Saumitra. The files are .m obj-c files. Somehow, deleting the FlashRuntimeExtensions.h file and resintalling from AIR3 SDK seems to have fixed things.