www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - linker problem

reply Bruno Rahle <brahle gmail.com> writes:
Hello! 
I have started using D today and I have a linker problem. I've downloaded it
from http://www.digitalmars.com/d/dcompiler.html and unzipped it in folder
"C:\brahle\jezici\D\". However, when I try to compile something, this is what I
get: 

"c:\brahle\jezici\D\dmd\bin\..\..\dm\bin\link.exe" sieve,,,user32+kernel32/noi;
Can't run '"c:\brahle\jezici\D\dmd\bin\..\..\dm\bin\link.exe"', check PATH

It seems that compiler is unable to reach the linker, although when I write the
line directly into cmd, it runs ok. 
Can someone please help me?
Sep 24 2007
parent reply Carlos Santander <csantander619 gmail.com> writes:
Bruno Rahle escribió:
 Hello! I have started using D today and I have a linker problem. I've
 downloaded it from http://www.digitalmars.com/d/dcompiler.html and unzipped
 it in folder "C:\brahle\jezici\D\". However, when I try to compile something,
 this is what I get:
 
 "c:\brahle\jezici\D\dmd\bin\..\..\dm\bin\link.exe"
 sieve,,,user32+kernel32/noi; Can't run
 '"c:\brahle\jezici\D\dmd\bin\..\..\dm\bin\link.exe"', check PATH
 
 It seems that compiler is unable to reach the linker, although when I write
 the line directly into cmd, it runs ok. Can someone please help me?

Did you also download DMC? It is the C/C++ compiler. The linker comes with it. What is the output of link? Maybe you have another one in your path. -- Carlos Santander Bernal
Sep 24 2007
parent reply Bruno Rahle <brahle gmail.com> writes:
Carlos Santander Wrote:

 Bruno Rahle escribió:
 Hello! I have started using D today and I have a linker problem. I've
 downloaded it from http://www.digitalmars.com/d/dcompiler.html and unzipped
 it in folder "C:\brahle\jezici\D\". However, when I try to compile something,
 this is what I get:
 
 "c:\brahle\jezici\D\dmd\bin\..\..\dm\bin\link.exe"
 sieve,,,user32+kernel32/noi; Can't run
 '"c:\brahle\jezici\D\dmd\bin\..\..\dm\bin\link.exe"', check PATH
 
 It seems that compiler is unable to reach the linker, although when I write
 the line directly into cmd, it runs ok. Can someone please help me?

Did you also download DMC? It is the C/C++ compiler. The linker comes with it. What is the output of link? Maybe you have another one in your path. -- Carlos Santander Bernal

Yes, I also downloaded the DMC. That's all I get as the otuput. And it's the only one in the path.
Sep 25 2007
parent Regan Heath <regan netmail.co.nz> writes:
Bruno Rahle wrote:
 Carlos Santander Wrote:
 
 Bruno Rahle escribió:
 Hello! I have started using D today and I have a linker problem. I've
 downloaded it from http://www.digitalmars.com/d/dcompiler.html and unzipped
 it in folder "C:\brahle\jezici\D\". However, when I try to compile something,
 this is what I get:

 "c:\brahle\jezici\D\dmd\bin\..\..\dm\bin\link.exe"
 sieve,,,user32+kernel32/noi; Can't run
 '"c:\brahle\jezici\D\dmd\bin\..\..\dm\bin\link.exe"', check PATH

 It seems that compiler is unable to reach the linker, although when I write
 the line directly into cmd, it runs ok. Can someone please help me?

What is the output of link? Maybe you have another one in your path. -- Carlos Santander Bernal

Yes, I also downloaded the DMC. That's all I get as the otuput. And it's the only one in the path.

When you type: c:\brahle\jezici\D\dmd\bin\..\..\dm\bin\link.exe into cmd it runs ok? Those first 2 directories, do they contain any non-ascii characters? Try renaming them A and B and see what happens. I assume you extracted DMC to the same path as DMD. You should have: C:\brahle\jezici\D\dmd C:\brahle\jezici\D\dm That allows this: c:\brahle\jezici\D\dmd\bin\..\..\dm\bin\link.exe to resolve to: c:\brahle\jezici\D\dm\bin\link.exe I assume that exe exists. Regan
Sep 25 2007