Thread overview
dwt-win linking problem
Jul 21, 2008
Rakan Alhneiti
Jul 21, 2008
Frank Benoit
Jul 21, 2008
Rakan Alhneiti
Jul 21, 2008
torhu
Jul 22, 2008
Rakan Alhneiti
Jul 22, 2008
torhu
Jul 23, 2008
Rakan Alhneiti
Jul 23, 2008
torhu
July 21, 2008
Hello,

would anyone know the reason behind dwt-win not linking when it's built using dsss
what i get is this:


C:\d\dwt-win>Microsoft (R) Library Manager Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

LINK : fatal error LNK1104: cannot open file "link.rf"

Thanks,
Rakan
July 21, 2008
Rakan Alhneiti schrieb:
> Hello,
> 
> would anyone know the reason behind dwt-win not linking when it's built using dsss
> what i get is this:
> 
> 
> C:\d\dwt-win>Microsoft (R) Library Manager Version 5.12.8078
> Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
> 
> LINK : fatal error LNK1104: cannot open file "link.rf"
> 
> Thanks,
> Rakan

looks like a broken dsss/rebuild to me.
sorry for no better help
July 21, 2008
Frank Benoit wrote:
> Rakan Alhneiti schrieb:
>> Hello,
>>
>> would anyone know the reason behind dwt-win not linking when it's built using dsss
>> what i get is this:
>>
>>
>> C:\d\dwt-win>Microsoft (R) Library Manager Version 5.12.8078
>> Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
>>
>> LINK : fatal error LNK1104: cannot open file "link.rf"
>>
>> Thanks,
>> Rakan
> 
> looks like a broken dsss/rebuild to me.
> sorry for no better help
I will try re-install dsss and check out the result
July 21, 2008
Rakan Alhneiti wrote:
> Hello,
> 
> would anyone know the reason behind dwt-win not linking when it's built using dsss
> what i get is this:
> 
> 
> C:\d\dwt-win>Microsoft (R) Library Manager Version 5.12.8078
> Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
> 
> LINK : fatal error LNK1104: cannot open file "link.rf"

Looks like you have the MS tools in your path before the digitalmars ones.
July 22, 2008
torhu wrote:
> Rakan Alhneiti wrote:
>> Hello,
>>
>> would anyone know the reason behind dwt-win not linking when it's built using dsss
>> what i get is this:
>>
>>
>> C:\d\dwt-win>Microsoft (R) Library Manager Version 5.12.8078
>> Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
>>
>> LINK : fatal error LNK1104: cannot open file "link.rf"
> 
> Looks like you have the MS tools in your path before the digitalmars ones.
Hello torhu,
i added the all D's directories paths like dsss before the tools but still get the same error.
I checked dsss and re-installed also but i am getting the same problem

here is my PATH
C:\d\bin;C:\d\dsss\bin;C:\d\dwt-win\;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;
July 22, 2008
Rakan Alhneiti wrote:
> torhu wrote:
>> Rakan Alhneiti wrote:
>>> Hello,
>>>
>>> would anyone know the reason behind dwt-win not linking when it's built using dsss
>>> what i get is this:
>>>
>>>
>>> C:\d\dwt-win>Microsoft (R) Library Manager Version 5.12.8078
>>> Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
>>>
>>> LINK : fatal error LNK1104: cannot open file "link.rf"
>> 
>> Looks like you have the MS tools in your path before the digitalmars ones.
> Hello torhu,
> i added the all D's directories paths like dsss before the tools but still get the same error.
> I checked dsss and re-installed also but i am getting the same problem
> 
> here is my PATH
> C:\d\bin;C:\d\dsss\bin;C:\d\dwt-win\;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;

Then there's probably no lib.exe in c:\d\bin.  Or dsss is autodetecting and and making a mistake.
July 23, 2008
torhu wrote:
> Rakan Alhneiti wrote:
>> torhu wrote:
>>> Rakan Alhneiti wrote:
>>>> Hello,
>>>>
>>>> would anyone know the reason behind dwt-win not linking when it's built using dsss
>>>> what i get is this:
>>>>
>>>>
>>>> C:\d\dwt-win>Microsoft (R) Library Manager Version 5.12.8078
>>>> Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
>>>>
>>>> LINK : fatal error LNK1104: cannot open file "link.rf"
>>>
>>> Looks like you have the MS tools in your path before the digitalmars ones.
>> Hello torhu,
>> i added the all D's directories paths like dsss before the tools but still get the same error.
>> I checked dsss and re-installed also but i am getting the same problem
>>
>> here is my PATH
>> C:\d\bin;C:\d\dsss\bin;C:\d\dwt-win\;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;
> 
> Then there's probably no lib.exe in c:\d\bin.  Or dsss is autodetecting and and making a mistake.
I have checked, c:\d\bin does contain lib.exe
If dsss is auto-detecting and making a mistake then it is a mistake the dwt installation files or dsss files because i have followed the exact instructions for windows installation in DWT's wiki.
Is there a fix?

Thanks again,
Rakan
July 23, 2008
Rakan Alhneiti wrote:
> torhu wrote:
>> Rakan Alhneiti wrote:
>>> torhu wrote:
>>>> Rakan Alhneiti wrote:
>>>>> Hello,
>>>>>
>>>>> would anyone know the reason behind dwt-win not linking when it's built using dsss
>>>>> what i get is this:
>>>>>
>>>>>
>>>>> C:\d\dwt-win>Microsoft (R) Library Manager Version 5.12.8078
>>>>> Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
>>>>>
>>>>> LINK : fatal error LNK1104: cannot open file "link.rf"
>>>>
>>>> Looks like you have the MS tools in your path before the digitalmars ones.
>>> Hello torhu,
>>> i added the all D's directories paths like dsss before the tools but still get the same error.
>>> I checked dsss and re-installed also but i am getting the same problem
>>>
>>> here is my PATH
>>> C:\d\bin;C:\d\dsss\bin;C:\d\dwt-win\;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;
>> 
>> Then there's probably no lib.exe in c:\d\bin.  Or dsss is autodetecting and and making a mistake.
> I have checked, c:\d\bin does contain lib.exe
> If dsss is auto-detecting and making a mistake then it is a mistake the dwt installation files or dsss files because i have followed the exact instructions for windows installation in DWT's wiki.
> Is there a fix?

Most likely, that's not the path you're really using.  Try setting the path to just 'C:\d\bin;C:\d\dsss\bin' and building again.  And verify that c:\d\bin\lib.exe is really digital mars lib.exe, not MS.

If you're familiar with tools like Process Explorer or Process Monitor (freely available at sysinternals.com), you can easily see which lib.exe rebuild is executing.

Another way is to check dsss/rebuild's source code to see how lib.exe is found.