Using the -I flag in Linux

PaperPilot jaltman77096 at yahoo.com
Thu Dec 27 10:31:00 PST 2007


Jarrett Billingsley Wrote:

> 
> Only if you don't compile the files that they come from.
> 
> i.e. this will work:
> 
> dmd file1.d file2.d
> 
> But if you compile them separately:
> 
> dmd file1.d -c
> dmd file2.d file1.obj
> 
> or
> 
> dmd file1.d file2.d -c
> dmd file1.obj file2.obj
> 
> So you only have to list object files of files you don't compile in the same 
> command.
> 
> This is no different from C or C++. 
> 
> 

I compiled 

dmd hello.d Word.d -v

Both files were parsed.

dmd hello.o Word.d -v

Word.d was parsed.

dmd hello.d Word.o -v

Only hello.d was parsed.

Then I did:  dmd hello.o Word.o -v

All I got was an expanded command line.

It looks like the object files are passed to the linker no matter when they were generated.



More information about the Digitalmars-d mailing list