Using the -I flag in Linux
PaperPilot
jaltman77096 at yahoo.com
Thu Dec 27 09:54:24 PST 2007
Steven Schveighoffer Wrote:
>
> You need to include the object file that Word produced. It's just like a
> normal C link. Try:
>
> dmd hello Word.o -I~/sandbox
>
> Note that D still imports via source files (or D interface files), not via
> object files. So when you import something you are not importing the object
> into the build, you are simply having the compiler re-parse the source file.
> This is why it is generally more efficient (time-wise) to compile all your
> source files at once, as the compiler only parses each file once.
>
> This is distinctly different from Java, which imports the compiled file.
>
> -Steve
>
>
Does this mean I still have to list all my object files on the command line? That could make quite a long entry.
Joel
More information about the Digitalmars-d
mailing list