[fpc-pascal] fpc can't compile project because a directory exists

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Nov 24 09:43:41 CET 2011


Hi,

I just tried to compile a test.pp file inside my /tmp directory. FPC
complained because there existed a /tmp/test/ directory!!

Is this a normal or known limitation of FPC? Or does the blame fall onto
the ld linker?

----8<-------------8<-------------8<-------------8<-------------8<----
[tmp]$ fpc test.pp
Free Pascal Compiler version 2.5.1 [2011/09/20] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling test.pp
Linking test
/usr/bin/ld: cannot open output file test: Is a directory
test.pp(35,1) Error: Error while linking
test.pp(35,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /opt/fpc-2.5.1/x86_64-linux/bin/ppcx64 returned an error exitcode
(normal if you did not specify a source file to be compiled)
----8<-------------8<-------------8<-------------8<-------------8<----


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/




More information about the fpc-pascal mailing list