2010년 8월 20일 금요일

mac error

1번째 에러
file:src/cocoa/app.mm
extern "C" static void ObserveMainRunLoopBeforeWaiting(CFRunLoopObserverRef observer, CFRunLoopActivity activity, void *info);
extern "C" static void ObserveMainRunLoopBeforeWaiting(CFRunLoopObserverRef observer, CFRunLoopActivity activity, void *info)
434, 435 부분의 "C" -> "C++" 변경 해봐라(구글링)

2번째 에러
ref

1. Unlike C++, a class in Objective-C which doesn't inherit from NSObject won't work. (Well, you can make it work, but you don't want that usually.) Note the line @interface MyObj:NSObject.
2. To use NSObject, do #import
3. Don't forget to use the extension .mm for Objective-C++ files.

WXNSTextFieldDelegate은 NSObject를 상속되었기 때문에
static wxObjcAutoRefFromAlloc sg_cocoaDelegate([[WXNSTextFieldDelegate alloc] init]); 정의된 sg_cocoaDelegate를 delete(함수포인터?)로 설정해도 objc-object형 변형엔 문제 없을 것 같은데...
(objc-object*)wxObjcAutoRefFromAlloc or
(NSObject*)wxObjcAutoRefFromAlloc 이렇게 해야 하나?

댓글 없음: