www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Different dmd dmc snn.lib versions

reply Richard James <Richard_member pathlink.com> writes:
Why does the DMD.ZIP have the following /dm directory files?

/dm/bin/lib.exe
/dm/bin/make.exe
/dm/lib.snn.lib

The first two,lib.exe and make.exe are the same ss the ones in DMC.ZIP

But, the DMD.ZIP and DMC.ZIP have different versions of snn.lib

DMD.ZIP - /dm/lib/snn.lib 547840 2/21/04
DMC.ZIP - /dm/lib/snn.lib 548353 2/15/04

Depending on the order you unzip them, you can have one of two different
versions of snn.lib installed. And there is confusion if you should overwrite
the existing versions of lib.exe, make.exe, and snn.lib or not.

From the installation instructions:
Requirements

* 32 bit Windows operating system
* D compiler for Win32
* linker and utilities for Win32 

I would unzip DMD.ZIP first and then DMC.ZIP second installing an "older"
version of snn.lib but this is the "correct" version of snn.lib for DM C/C++
Version 8.42 so if you install DMD.ZIP last, the 8.42 version is now "broken".

-- R.J.
Jun 08 2004
parent reply J C Calvarese <jcc7 cox.net> writes:
Richard James wrote:
 Why does the DMD.ZIP have the following /dm directory files?
 
 /dm/bin/lib.exe
 /dm/bin/make.exe
 /dm/lib.snn.lib
 
 The first two,lib.exe and make.exe are the same ss the ones in DMC.ZIP
 
 But, the DMD.ZIP and DMC.ZIP have different versions of snn.lib
 
 DMD.ZIP - /dm/lib/snn.lib 547840 2/21/04
 DMC.ZIP - /dm/lib/snn.lib 548353 2/15/04
 
 Depending on the order you unzip them, you can have one of two different
 versions of snn.lib installed. And there is confusion if you should overwrite
 the existing versions of lib.exe, make.exe, and snn.lib or not.
 
 From the installation instructions:
 Requirements
 
 * 32 bit Windows operating system
 * D compiler for Win32
 * linker and utilities for Win32 
 
 I would unzip DMD.ZIP first and then DMC.ZIP second installing an "older"
 version of snn.lib but this is the "correct" version of snn.lib for DM C/C++
 Version 8.42 so if you install DMD.ZIP last, the 8.42 version is now "broken".
 
 -- R.J.
The rule of thumb that I use is "newer is better". If I reinstall everything from scratch, I usually unzip DMC first and then overwrite with the DMD (I can't remember the DMC files ever being newer). I agree that the install instructions should clarify whether this is the correct method or not. -- Justin (a/k/a jcc7) http://jcc_7.tripod.com/d/
Jun 08 2004
parent reply J C Calvarese <jcc7 cox.net> writes:
J C Calvarese wrote:
 Richard James wrote:
 
 Why does the DMD.ZIP have the following /dm directory files?

 /dm/bin/lib.exe
 /dm/bin/make.exe
 /dm/lib.snn.lib

 The first two,lib.exe and make.exe are the same ss the ones in DMC.ZIP

 But, the DMD.ZIP and DMC.ZIP have different versions of snn.lib

 DMD.ZIP - /dm/lib/snn.lib 547840 2/21/04
 DMC.ZIP - /dm/lib/snn.lib 548353 2/15/04

 Depending on the order you unzip them, you can have one of two different
 versions of snn.lib installed. And there is confusion if you should 
 overwrite
 the existing versions of lib.exe, make.exe, and snn.lib or not.

 From the installation instructions:
 Requirements

 * 32 bit Windows operating system
 * D compiler for Win32
 * linker and utilities for Win32
 I would unzip DMD.ZIP first and then DMC.ZIP second installing an "older"
 version of snn.lib but this is the "correct" version of snn.lib for DM 
 C/C++
 Version 8.42 so if you install DMD.ZIP last, the 8.42 version is now 
 "broken".
Oops. I kind of read over this. (I haven't done much with DM C++. My Digital Mars experience is with DMD.) When you say "broken", do you mean there's a visible symptom like a compile, link, or runtime error? That sounds like an annoying error. I'm sure Walter can fix. :)
 -- R.J.
The rule of thumb that I use is "newer is better". If I reinstall everything from scratch, I usually unzip DMC first and then overwrite with the DMD (I can't remember the DMC files ever being newer). I agree that the install instructions should clarify whether this is the correct method or not.
-- Justin (a/k/a jcc7) http://jcc_7.tripod.com/d/
Jun 08 2004
parent Richard James <Richard_member pathlink.com> writes:
In article <ca60gg$qml$1 digitaldaemon.com>, J C Calvarese says...
J C Calvarese wrote:
 Richard James wrote:
 
 Why does the DMD.ZIP have the following /dm directory files?

 /dm/bin/lib.exe
 /dm/bin/make.exe
 /dm/lib.snn.lib

 The first two,lib.exe and make.exe are the same ss the ones in DMC.ZIP

 But, the DMD.ZIP and DMC.ZIP have different versions of snn.lib

 DMD.ZIP - /dm/lib/snn.lib 547840 2/21/04
 DMC.ZIP - /dm/lib/snn.lib 548353 2/15/04

 Depending on the order you unzip them, you can have one of two different
 versions of snn.lib installed. And there is confusion if you should 
 overwrite
 the existing versions of lib.exe, make.exe, and snn.lib or not.

 From the installation instructions:
 Requirements

 * 32 bit Windows operating system
 * D compiler for Win32
 * linker and utilities for Win32
 I would unzip DMD.ZIP first and then DMC.ZIP second installing an "older"
 version of snn.lib but this is the "correct" version of snn.lib for DM 
 C/C++
 Version 8.42 so if you install DMD.ZIP last, the 8.42 version is now 
 "broken".
Oops. I kind of read over this. (I haven't done much with DM C++. My Digital Mars experience is with DMD.) When you say "broken", do you mean there's a visible symptom like a compile, link, or runtime error? That sounds like an annoying error. I'm sure Walter can fix. :)
No, my main problem getting DMD to compile and link "out of the box" was understanding the behavior of the sc.ini file. I understand that behavior now. Also the samples not all compiling with this version didn't help the first time DMD experience either, but it is a free compiler under development so I expect ragged edges :) I thought that the DMC.ZIP using the /dm directory was not intuitive while /dmc would be. Of course I figured out later that the DMC.ZIP is the same as the dm840c.zip . I had an overlapping directory conflict while unzipping dm840c.zip after the DMC.ZIP. At the time, I was confused that I already had the fine DM C/C++ compiler installed :) The unrelated sc.ini "problem" was the main reason I questioned the installation process more closely. I think I normally would have just clicked yes to overwrite and if it worked, I would of forgot about it. The samples programs not working set me to digging deeper. What I am worried about is the introduction of accidental version "errors" by using different versions of the snn.lib file. It may work fine, then again it may not or worse yet, erratic behavior my come and go as I upgrade the DM C/C++ Compiler. If I install the DMD.ZIP after the DMC.ZIP or the dm840c.zip then when I use the C/C++ compiler I am using an unoffical future version of snn.lib . This could be misleading when reporting problems that come up while using the library. And problems would magically disappear by reinstalling the DM C/C++ compiler. -- R.J.
Jun 09 2004