delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/24/04:45:46

From: yang AT ee DOT ualberta DOT ca (Xianyi Yang)
Newsgroups: comp.os.msdos.djgpp
Subject: TO: Eli Zaretskii
Date: 24 Mar 1998 09:16:27 GMT
Organization: University of Alberta Electrical Engineering Department
Lines: 114
Message-ID: <6f7tlb$fri$1@pulp.ucs.ualberta.ca>
NNTP-Posting-Host: confcius.ee.ualberta.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Dear Eli: Thank you very much for your quick reply. I really appreciate it. 

Eli Zaretskii wrote: 

>  On Mon, 23 Mar 1998, Xianyi Yang wrote: 
>
>  > Today I installed the new version 2.01. When I compile files, it says 
>  > "cannot find" some files. I searched, that file is there with a long 
>  > name. I compared it the DJGPP 2.0 version, find that the v2.0 version 
>  > use short names. 
>
>  I'm confused.  Please post at least a couple of examples of files which 
>  2.01 cannot find, the names they are looked for in 2.01 and the names used 
>  in v2.0 for those files.  Maybe then I could guess what is your problem. 
>   

My program is quite simple. It list as: 

#include <iostream.h> 
#include <fstream.h> 
#include <stdio.h> 
#include <stdlib.h> 
#include <math.h> 

void main() 
  { 
   double a, g, k; 
   int    i; 

   cout << "Input k"<<endl; 
   cin >> k; 

   ofstream ofp("sig.dat"); 

   for (i=0; i<1000; i++) 
      { 
       a = i*0.01; 
       g = 2./(1. + exp(k*a)); 
       ofp << a << " " << g <<endl; 
      } 
   ofp.close(); 
 } 

When I compile, the ERROR is: 

E:\Yang>g++ aa.cc 
In file included from aa.cc:2: 
d:/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file or directory (ENOENT) 

Actually, I do have that file (streambuf.h is a LONG name. In the v2.0, 
it is streambu.h, a SHORT name): 
D:\DJGPP\lang\cxx>dir streambuf.h 
 Volume in drive D is Taylor Project 
 Volume Serial Number is F402-CEB0 

 Directory of D:\DJGPP\lang\cxx 

08/02/98  11:28p                16,756 streambuf.h 
               1 File(s)         16,756 bytes 
                            374,984,704 bytes free 

>  AFAIK, both v2.0 and v2.01 support long file names on Windows 95, only 
>  v2.0 had some subtle bugs in that support.  SO what worked for you in 
>  v2.0 should continue to work in v2.01. 
>
>  One thing to try is to set LFN=y in the environment and see if your 
>  problems go away. 
>   

I tried "set LFN=y", it still does not work. 

>  > My question is: the new DJGPP 2.01 version cannot run at Win 95/NT, is 
>  > that true? 
>
>  Definitely NOT true.  v2.01 works in both Windows 95 and NT. 
>
>  > Is there any way to fix this problem? 
>
>  AFAIK, there is no problem to fix here. 
>   

Actually, I find a lot of files at v2.01 use LONG file names, e.g.,
stl_raw_storage_iter.h, 
stl_uninitialized.h, etc. 

>  > I am trying to find what's the difference/improvement between v2.01 and 
>  > v2.0 through the Internet, but failed. Does any body would like to tell 
>  > me? 
>
>  The list of improvements is not short.  The djdev201.zip archive includes 
>  the list of changes in its Knowledge Base.  From the DOS prompt type 
>  "info kb 'What Changed' Changes" and read there.

I type "info" or "info gcc", it works. BUT: 
E:\yang>info kb 'What Changed' Changes 
Bad command or file name 

Then I use: "Ctrl+C" try to stop it, it gives ERROR: 
"Dr. Watson for Windows NT" in a new window, saying that: 
"NTVDM.exe" ERROR. 

It likes something wrong. However. The v2.01 I installed works 
fine when I compile C programs without any LONG names. 

Thanks again. 

Xianyi 
----------------------------------------------------------------- 
Dept. of Electrical & Computer Engineering 
University of Alberta, Edmonton, AB, T6G 2G7, Canada 
Phone/Fax: (403) 482-2976 (home); Phone: (403) $92-4875 (office) 
Email: yang AT ee DOT ualberta DOT ca 
WWW: http://www.ee.ualberta.ca/~yang  

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019