[fpc-pascal] Forward type not resolved
Leonardo M. Ramé
martinrame at yahoo.com
Thu Mar 3 23:06:47 CET 2011
Hi, I'm trying to create a forward declaration for a class, as I use to do in Delphi, but I'm getting "Forward type not resolved". How can I troubleshoot this?.
Here's the code:
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
type
TQuote = class; // forward declaration.
TOnSqueeze = procedure (AQuote: TQuote); of object;
{ TQuote }
TQuote = class(TCollectionItem)
private
FAdjClose: Double;
FBBand_Diff: Double;
...
And, this is the error I'm getting:
quote.pas(11,12) Error: Forward type not resolved "TQuote"
Leonardo M. Ramé
http://leonardorame.blogspot.com
More information about the fpc-pascal
mailing list