tags:

views:

7

answers:

0

I wanted to subclass the JSC::Debugger from JavaScriptCore. I always end up with the same error:

Undefined symbols: "typeinfo for JSC::Debugger", referenced from: typeinfo for JavaScriptDebuggerin JavaScriptDebugger.o ld: symbol(s) not found collect2: ld returned 1 exit status

I don't know enough about c++ to understand why that doesn't work. From what i understand, it tries to find the type information for the superclass in the .o file of the subclass.

In case this class is private and cannot be subclassed, i wonder how WebKit does that, as it successfully subclasses this class.

In case you want to try for yourself, I've uploaded the xcode project to: http://db.tt/XLYvLbK To use the project, you need to have JavaScriptCore in the parent folder (you can download it from opensource -dot- apple -dot- com in the 10.6.4 section, there's the JavaScriptCore source)

Thanks in advance! Karsten