Linker complaining about interface methods

Daniel Keep daniel.keep.lists at gmail.com
Thu Apr 5 14:56:19 PDT 2007


Ugh.

I'm currently knee-deep in trying to get this code to work, and the
linker spits this out at me:

util\dataset.obj(dataset)
 Error 42: Symbol Undefined _D4util7dataset12IFieldParser7getDataMFZAh

Here's the definition of IFieldParser:

interface IFieldParser : ContentHandler
{
    ubyte[] getData();
}

Where ContentHandler is just the SAX interface (which doesn't have a
getData method).

The "getData" method is used exactly twice in the code on instances of
IFieldParser:

IFieldParser fieldParser;
// ...
fieldParser.getData();

If I comment the "fieldParser.getData" lines out, the code compiles and
links fine.

Anyone have *any* idea what's going on here?

	-- Daniel

-- 
int getRandomNumber()
{
    return 4; // chosen by fair dice roll.
              // guaranteed to be random.
}

http://xkcd.com/

v2sw5+8Yhw5ln4+5pr6OFPma8u6+7Lw4Tm6+7l6+7D
i28a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP  http://hackerkey.com/



More information about the Digitalmars-d mailing list