[Lazarus] RE : TRichMemo and current Lazarus

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Fri May 18 13:03:03 CEST 2012

Mark Morgan Lloyd wrote:
> Ludo Brands wrote:
>>> I'm trying to work by creating the TRichMemo under code-control 
>>> rather than using the IDE, so that I can easily enable/disable it 
>>> depending on what packages etc. are available.
>>> With references to RichEdit, my terminal emulator compiles, but at 
>>> linkage I get
>>> /usr/local/src/x2741/trunk/lib/i386-linux/richmemo.o: In function 
>>> /usr/local/src/richmemo/richmemo.pas:180: undefined reference to 
>>> `WSRegisterCustomRichMemo'
>>> Any suggestions would be appreciated.
>> WSRegisterCustomRichMemo is defined in the unit RichMemoFactory.
>> Richmemopackage.pas has this in the uses clause. So add 
>> RichMemoFactory to
>> the uses clause of your program. Perhaps some others need to be added too
>> but they should be listed in Richmemopackage.pas.
> Thanks Ludo, I'll try that in about an hour.

I've added RichMemoFactory in the  uses  statements that have RichMemo, 
but I'm now getting things like

config.pas(1,1) Fatal: Unit RichMemoFactory searched but RichMemo found

Because I'm not adding the RichMemo using the IDE, it doesn't appear in 
the main project source file. I've not tried adding the directory 
containing the RichEdit to any of my paths, since Googling earlier 
suggested this was a Really Bad Idea.

Can anybody tell me what obvious point I'm missing? :-)

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the Lazarus mailing list