[fpc-pascal] Problem compiling an X client

Anton Tichawa anton.tichawa at chello.at
Sun Feb 3 15:25:04 CET 2008


On Sun, 2008-02-03 at 13:13 +0100, Michael Van Canneyt wrote:
> 
> On Sun, 3 Feb 2008, Anton Tichawa wrote:
> 
> > Hello list!
> > 
> > I have problems compiling an X client. The compiler says:
> > 
> > Free Pascal Compiler version 2.2.0 [2007/08/31] for i386
> > Copyright (c) 1993-2007 by Florian Klaempfl
> > Target OS: Linux for i386
> > Compiling pas/xdemo.pas
> > PPU Loading /usr/local/lib/fpc/2.2.0/units/i386-linux/x11/x.ppu
> > Recompiling x, checksum changed for ctypes
> > Fatal: Can't find unit x used by xdemo
> > Fatal: Compilation aborted
> > Error: /usr/local/bin/ppc386 returned an error exitcode (normal if you
> > did not specify a source file to be compiled)
> > 
> > Files x and xlib are available as objects (.ppu, .o) only. Any ideas? Am
> > I doing something wrong?
> 
> Did you install a newer/different ctypes unit ? The compiler thinks you did.
> 
> Try compiling with -vu, so you can see which units are loaded.
> 
> Michael.

In fact, I wrote a unit 'ctypes.pas', not aware that this conflicts with
a system unit. Thank you!

Anton.






More information about the fpc-pascal mailing list