Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2007-12

specify source file with spaces in directory name

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Vincent Snijders

How I can specify a source file with spaces in the directory name?

Lazarus generates the following command line:

D:\FPC\2.2.0\bin\i386-Win32\fpc.exe -S2cgi -OG1 -gl -WG -vewnhi -l -FuD:\lazarus\source\lazarus\lcl\units\i386-win32\ -FuD:\lazarus\source\lazarus\lcl\units\i386-win32\win32\ -FuD:\lazarus\source\lazarus\packager\units\i386-win32\ -Fu. "-oC:\Documents and Settings\vsds\Local Settings\Temp\project1.exe" -dLCL -dLCLwin32 "C:\Documents and Settings\vsds\Local Settings\Temp\project1.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

Vincent

Reply by email

Michael Van Canneyt
to Vincent Snijders
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.

Michael.

Reply by email

Vincent Snijders
to Michael Van Canneyt
Michael Van Canneyt wrote 8 lines
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.

The only think I coulf find was a mail about passing parameters to fpdoc.

Vincent

Reply by email

Vincent Snijders
to Michael Van Canneyt: If I recall correctly, I once sent you a patch for process.pp for this, with the question…
Michael Van Canneyt wrote 8 lines
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.

Vinent

Reply by email

Mattias Gaertner
to Vincent Snijders
Show quoted text 13 lines
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 ""?

Vinent

New nickname?

Mattias

Reply by email

Vincent Snijders
to Mattias Gaertner
Mattias Gaertner wrote 15 lines
On Fri, 14 Dec 2007 15:40:03 +0100 Vincent Snijders 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)

Show quoted text 6 lines
> Vinent New nickname?

:-)

Vincnet

Reply by email

Vincent Snijders
to Vincent Snijders: How I can specify a source file with spaces in the directory name? Lazarus generates the…
Vincent Snijders wrote 26 lines
How I can specify a source file with spaces in the directory name? Lazarus generates the following command line: D:\FPC\2.2.0\bin\i386-Win32\fpc.exe -S2cgi -OG1 -gl -WG -vewnhi -l -FuD:\lazarus\source\lazarus\lcl\units\i386-win32\ -FuD:\lazarus\source\lazarus\lcl\units\i386-win32\win32\ -FuD:\lazarus\source\lazarus\packager\units\i386-win32\ -Fu. "-oC:\Documents and Settings\vsds\Local Settings\Temp\project1.exe" -dLCL -dLCLwin32 "C:\Documents and Settings\vsds\Local Settings\Temp\project1.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

Shall I create a bug report for this issue?

Vincent

Reply by email