[fpc-pascal]gpm library compiled by default ?
michalis at camelot.homedns.org
Fri Oct 24 07:59:56 CEST 2003
James Mills wrote:
> On Thu, Oct 23, 2003 at 09:16:19AM +0200, Marco van de Voort wrote:
>>>On Wed, Oct 22, 2003 at 10:53:51PM +0200, Michalis Kamburelis wrote:
>>>>Maybe you're using the Keyboard unit ? This unit uses Mouse in it's
>>>>implementation, and by default unit Mouse uses Gpm unit (that links to
>>>>libgpm). If you don't want to depend on libgpm you can recompile Mouse
>>>>with symbol NOGPM defined (or even with NOMOUSE defined since you don't
>>>>use mouse at all).
>>>I think I do use the KeyBoard unit. So I could compile it with fpc
>>Yes. Under FreeBSD this is default even.
> Compiling with this option makes no difference. It will still compile
> and require the gpm library.
> Any other suggestion ? IHMO, A console app that just uses the KeyBoard
> should not need the gpm library in it's binary :)
From your answer I understand that you are recompiling Keyboard unit
with -dNOMOUSE, which is pointless. I wrote (maybe it was not clear
enough, sorry) that you should recompile _Mouse_ unit (not Keyboard unit).
If this is not the case and you're doing as I said (recompiling Mouse
unit), you should make sure that you're really linking your program with
the newly compiled Mouse unit. E.g. you can check this by adding a small
Writeln('something...') to initialization section of Mouse unit or by
compiling with -vu.
If you're 100% sure that you're compiling your program with Mouse unit
that does not require Gpm unit than it means that some other unit uses
Gpm unit (I assume here that there is no other unit that links to libgpm
library directly, without using Gpm unit). There is not such unit in FPC
1.0.10 RTL, but that doesn't mean anything... So in this case you should
use Peter Vreman's advice and recompile program with -vu to see what
other unit uses Gpm unit.
More information about the fpc-pascal