www.digitalmars.com         C & C++   DMDScript  

D.gnu - import differences between GDC and DMD

reply Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- --- [a.d] ---

module some.name;

void test(){
}

- --- [b.d] ---

import some.name;

int main(){
	test();
	return 0;
}

- -------------

The following succeds with DMD, but not with GDC:
 dmd a.d b.d

Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFChckc3w+/yD4P9tIRAoQIAJ405/CGPBjmIB33HEruuHixGcC96gCbB6zr SUaCv0oEgzVFCxcKUDjjgmA= =XnSc -----END PGP SIGNATURE-----
May 14 2005
parent David Friedman <d3rdclsmail_a_ _t_earthlink_d_._t_net> writes:
Thomas Kuehne wrote:
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
 - --- [a.d] ---
 
 module some.name;
 
 void test(){
 }
 
 - --- [b.d] ---
 
 import some.name;
 
 int main(){
 	test();
 	return 0;
 }
 
 - -------------
 
 The following succeds with DMD, but not with GDC:
 
dmd a.d b.d

Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFChckc3w+/yD4P9tIRAoQIAJ405/CGPBjmIB33HEruuHixGcC96gCbB6zr SUaCv0oEgzVFCxcKUDjjgmA= =XnSc -----END PGP SIGNATURE-----

For GDC, use the -fall-sources flag: dmd -fall-sources a.d b.d This option is not on by default because it really bogs down if there are a lot of source files. David
May 14 2005