[fpc-devel] specify source file with spaces in directory name

Vincent Snijders vsnijders at quicknet.nl
Fri Dec 14 15:54:00 CET 2007


Mattias Gaertner schreef:
> On Fri, 14 Dec 2007 15:40:03 +0100
> Vincent Snijders <vsnijders at quicknet.nl> wrote:
> 
>> Michael Van Canneyt schreef:
>>> On Fri, 14 Dec 2007, Vincent Snijders wrote:
>>>
>>>> How I can specify a source file with spaces in the directory name?
>>> If I recall correctly, I once sent you a patch for process.pp for
>>> this, with the question whether you could test this.
>>>
>> process.pp doesn't come into play (yet). Lazarus does use it, but
>> from the a dos-prompt, the compiler doesn't recognize the source file
>> with spaces in the path either.
> 
> What about ""?

That is what is happening now. This is the output in the dos-box (windows 2000):

D:\lazarus\source\lazarus>D:\FPC\2.2.0\bin\i386-Win32\fpc.exe  -S2cgi -O1 -gl -W
G -vewnhi -l -FuD:\lazarus\source\lazarus\lcl\units\i386-win32\ -FuD:\lazarus\so
urce\lazarus\lcl\units\i386-win32\win32\ -FuD:\lazarus\source\lazarus\packager\u
nits\i386-win32\ -Fu. "-oC:\Documents and Settings\vsds\Local Settings\Temp\proj
ect1.exe" -dLCL -dLCLwin32 "C:\Documents and Settings\vsds\Local Settings\Temp\p
roject1.lpr"
Hint: Start of reading config file D:\FPC\2.2.0\bin\i386-Win32\fpc.cfg
Hint: End of reading config file D:\FPC\2.2.0\bin\i386-Win32\fpc.cfg
Warning: Only one source file supported
Warning: Only one source file supported
Warning: Only one source file supported
Warning: Only one source file supported
Warning: Only one source file supported
Warning: Only one source file supported
Free Pascal Compiler version 2.2.0 [2007/09/09] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Win32 for i386
Compiling Settings\Temp\project1.lpr
Fatal: Can't open file "project1.lpr"
Fatal: Compilation aborted
Error: D:\FPC\2.2.0\bin\i386-Win32\ppc386.exe returned an error exitcode (normal
  if you did not specify a source file to be compiled)

> 
>  
>> Vinent
> 
> New nickname?
> 
:-)

Vincnet



More information about the fpc-devel mailing list