Using the -I flag in Linux

"Jérôme M. Berger" jeberger at free.fr
Thu Dec 27 10:35:47 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

PaperPilot wrote:
> 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.
> 
	That's why we have tools such as dsss or SCons...

		Jerome
- --
+------------------------- Jerome M. BERGER ---------------------+
|    mailto:jeberger at free.fr      | ICQ:    238062172            |
|    http://jeberger.free.fr/     | Jabber: jeberger at jabber.fr   |
+---------------------------------+------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHc/CDd0kWM4JG3k8RAmKpAJ9pTdc6HBA33T9b4mO1A4S2D70pyACgsZ+m
wHkywgqTcY2+lp+5xPVp3zk=
=jcd4
-----END PGP SIGNATURE-----



More information about the Digitalmars-d mailing list