View previous topic :: View next topic |
Author |
Message |
Carlos
Joined: 19 Mar 2004 Posts: 396 Location: Canyon, TX
|
Posted: Sat May 28, 2005 7:00 am Post subject: different behavior with dmd and gdc |
|
|
Code: | module foo.a;
import foo.b;
void main()
{
sayHi();
} |
Code: | module foo.b;
private import std.stdio;
void sayHi()
{
writefln("hi!");
} |
Code: | $ build -Tfoo -I.. a.d -names
Current Dir '/home/carlos/dev/tests/foo/'
[ foo/b.d ]
[ a.d ]
Building target 'foo'
gdc: foo/b.o: No such file or directory |
Both files are in the same directory (foo), but build is looking for foo/b.d which doesn't exist.
It happened with build when compiled with gdc, but not when it was compiled with dmd. Running with -V, this line showed in the dmd version but not in the gdc one:
Code: | Added root from command line = /home/carlos/dev/tests/ |
|
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Sat May 28, 2005 4:25 pm Post subject: Re: different behavior with dmd and gdc |
|
|
Carlos wrote: |
It happened with build when compiled with gdc, but not when it was compiled with dmd. Running with -V, this line showed in the dmd version but not in the gdc one:
Code: | Added root from command line = /home/carlos/dev/tests/ |
|
My mistake was that for DMD I was checking for the pattern "-Ipath" but for GDC I was checking for the pattern "-I path" (but I got the logic for that wrong anyway).
Anyhow, its fixed now. On the Build command line, you can use either "-Ipath" or "-I path" now with both DMD and GDC.
I'm assuming you were trying out the beta version at
http://www.users.bigpond.com/ddparnell/build-beta-2.08.zip _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|