D - Linker Error
- Benji Smith (31/34) Feb 27 2003 I've got a really simple set of classes, and I'm getting linker errors t...
I've got a really simple set of classes, and I'm getting linker errors that I can't seem to figure out. It makes me feel like I'm in 3rd grade again. The details are below. Does anybody have any ideas? -- Benji Smithimport xmldocumentfactory; void main (char[][] args) { XmlDocumentFactory xml = new XmlDocumentFactory(); }This code is in xmlparser.dimport string; import regexp; import c.stdio; class XmlDocumentFactory { private char[][] lex; private char[] inputString = "<node1><node2></node2></node1>"; this() { lex = splitStringByBracketGroups(inputString); for (int i = 0; i < lex.length; i++) { printf(lex[i][] ~ "\n"); } } private char[][] splitStringByBracketGroups(char[] source) { // RegExp switches g & m are used for global & multiline matches RegExp bracketSplit = new RegExp("[<>]","gm"); return bracketSplit.split(source); } }And this code is in xmldocumentfactory.dxmlparser.obj(xmlparser) Error 42: Symbol Undefined __Class_XmlDocumentFactory xmlparser.obj(xmlparser) Error 42: Symbol Undefined_Dxmldocumentfactory_XmlDocumentFactory__ctor_FZC18XmlDocumentFactoryWhen I compile, I get the following errors from the linker:
Feb 27 2003