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

Sven Barth pascaldragon at googlemail.com
Thu Nov 24 10:15:52 CET 2011


Am 24.11.2011 09:43, schrieb Graeme Geldenhuys:
> 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?

Of course this is normal. The compiler - or in this case the linker - 
tries to create a file "test" (as applications don't normally have an 
extension like on Windows) and as a directory "test" already exists that 
fails. So nothing special or buggy here (on Windows you could get a 
similar result by creating a directory "test.exe")

Regards,
Sven




More information about the fpc-pascal mailing list