Hi all, I'm trying to use --object-destination-path=obj to place all *.o files in the directory 'obj'. However it won't work... What do I do wrong? The complete line is:
gpc --object-destination-path=./obj/ --automake main.pas
I'm using version 20010924 and I have placed main.pas and test.pas in the current dir, and their content is (but this probably doesn't matter):
program main;
uses test;
begin writeln('main'); testfunc; end.
unit test;
interface
procedure testfunc;
implementation
procedure testfunc; begin writeln('test'); end; { testfunc }
end.
Best regards
Preben Bohn
===== The two rules for success are: 1. Never tell them everything you know.
____________________________________________________________ Nokia Game is on again. Go to http://uk.yahoo.com/nokiagame/ and join the new all media adventure before November 3rd.
Preben Mikael Bohn wrote:
Hi all, I'm trying to use --object-destination-path=obj to place all *.o files in the directory 'obj'. However it won't work... What do I do wrong? The complete line is:
gpc --object-destination-path=./obj/ --automake main.pas
I'm using version 20010924 and I have placed main.pas and test.pas in the current dir, and their content is (but this probably doesn't matter):
You probably want --unit-destination-path instead
Maurice
On Fri, 19 Oct 2001, Maurice Lombardi wrote:
Preben Mikael Bohn wrote:
Hi all, I'm trying to use --object-destination-path=obj to place all *.o files in the directory 'obj'. However it won't work... What do I do wrong? The complete line is:
gpc --object-destination-path=./obj/ --automake main.pas
I'm using version 20010924 and I have placed main.pas and test.pas in the current dir, and their content is (but this probably doesn't matter):
You probably want --unit-destination-path instead
also add -o YourExecutableName otherwise you get a.out which is not very descriptive. Russ
[snip]
gpc --object-destination-path=./obj/ --automake main.pas
[snip]
You probably want --unit-destination-path instead
Ah, silly me... :-) Thank you.
Does this mean that --object-destination-path does not work at all?
Best regards
Preben Bohn
===== The two rules for success are: 1. Never tell them everything you know.
____________________________________________________________ Nokia Game is on again. Go to http://uk.yahoo.com/nokiagame/ and join the new all media adventure before November 3rd.
Preben Mikael Bohn wrote:
[snip]
gpc --object-destination-path=./obj/ --automake main.pas
[snip]
You probably want --unit-destination-path instead
Ah, silly me... :-) Thank you.
Does this mean that --object-destination-path does not work at all?
From the manual:
`--unit-destination-path' Path where to create object and GPI files.
`--object-destination-path' Path where to create additional object files.
But I do not know what are these additional object files: created by gcc may be ?
Maurice
Maurice Lombardi wrote:
Preben Mikael Bohn wrote:
Does this mean that --object-destination-path does not work at all?
From the manual:
`--unit-destination-path' Path where to create object and GPI files.
`--object-destination-path' Path where to create additional object files.
But I do not know what are these additional object files: created by gcc may be ?
Exactly. I will clarify this in the manual.
Frank