www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - dmd deps switch

reply Ary Borenszweig <ary esperanto.org.ar> writes:
Hi,

I'm trying to fetch a module's dependencies with the deps switch, but it 
gives me an empty list.

dmd main.d -deps=foo.txt

foo.txt is empty.

main.d is:

---
module main;

import other;

int main(char[][] args) {
	someVariable = 3;
	return 0;
}
---

and someVariable is defined in "other".

What am I doing wrong?
Aug 30 2009
parent Jarrett Billingsley <jarrett.billingsley gmail.com> writes:
On Sun, Aug 30, 2009 at 4:35 PM, Ary Borenszweig<ary esperanto.org.ar> wrot=
e:
 Hi,

 I'm trying to fetch a module's dependencies with the deps switch, but it
 gives me an empty list.

 dmd main.d -deps=3Dfoo.txt

 foo.txt is empty.

 main.d is:

 ---
 module main;

 import other;

 int main(char[][] args) {
 =A0 =A0 =A0 =A0someVariable =3D 3;
 =A0 =A0 =A0 =A0return 0;
 }
 ---

 and someVariable is defined in "other".

 What am I doing wrong?
http://d.puremagic.com/issues/show_bug.cgi?id=3D3143
Aug 30 2009