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
(objc-object*)wxObjcAutoRefFromAlloc
(NSObject*)wxObjcAutoRefFromAlloc
댓글 없음:
댓글 쓰기