On Mon, 3 Apr 2006 12:57:55 +0200
"Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:

> Using latest SVN lazarus under Linux.
> 
> There is a difference when you specify the directory in (1) "Compiler
> Options -> Unit Output Directory" and (2) when you specify the
> -FU<path> in the "Compiler Options -> Other -> custom Options"

Correct. Order matters.

 
> I have not specified a Target Filename in "Project Options".  (1)
> seems to always add the -o<path and filename>  effectively giving the
> same result as the previous -FE option gave.
> 
> I normally have a directory structure as follows:
> 
> <project>
>    \units                <--- compile .ppu and .o files live here
>    <project.exe>     <-- executable and .compiled file lives here
>    <*.pas>            <--- all source lives here
> 
> 
> If I use option (1), my executable ends in the \units directory.

Correct. If you do not specify a target filename, the IDE puts everything
into the output directory.
To separate the output, specify separate output files/dirs.


> If I use option (2), my executable ends in the <project> directory,

Ok. Custom options are up to the expert programmer.


> which is what I want, except if I specified a path in the "Project
> Options -> Target Filename".
> 
> Below is the two .compiled files (note the -o path):
> 
> **** created using option (1)  *****
> <?xml version="1.0"?>
> <CONFIG>
>   <Compiler Value="/opt/fpc/bin/ppc386" Date="1133946495"/>
>   <Params Value=" -S2cgi -OG1 -gl -WG -vewnhi -l
> -Fu/opt/lazarus/lcl/units/i386-linux/
> -Fu/opt/lazarus/lcl/units/i386-linux/gtk/
> -Fu/opt/lazarus/packager/units/i386-linux/ -Fu. -FUunits/
> -o/media/sda5/Programming/Tests/ListBox/units/project1 -dLCL -dLCLgtk
> project1.lpr"/>
> </CONFIG>
> 
> 
> **** created using option (2)  *****
> <?xml version="1.0"?>
> <CONFIG>
>   <Compiler Value="/opt/fpc/bin/ppc386" Date="1133946495"/>
>   <Params Value=" -S2cgi -OG1 -gl -WG -vewnhi -l
> -Fu/opt/lazarus/lcl/units/i386-linux/
> -Fu/opt/lazarus/lcl/units/i386-linux/gtk/
> -Fu/opt/lazarus/packager/units/i386-linux/ -Fu.
> -o/media/sda5/Programming/Tests/ListBox/project1 -FUunits -dLCL
> -dLCLgtk project1.lpr"/>
> </CONFIG>
> 
> 
> Possible Solution:
> I believe the ccloDoNotAppendOutFileOption option must be specified
> somewhere.  I found at line 2165 in compileroptions.pp a if statement
> checking for it, but obviously it is not part of the Flags variable.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to