www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/13/19:55:19

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Missing strstream.h
Date: Sun, 13 Apr 1997 15:28:59 -0400
Organization: Cornell University http://www.cornell.edu
Lines: 44
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <335133FB.36D@cornell.edu>
References: <3350FB82 DOT 4DBA AT internetMCI DOT COM>
Reply-To: asu1 AT cornell DOT edu
NNTP-Posting-Host: cu-dialup-0066.cit.cornell.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

R. Johnson wrote:
> 
> I recently tried to compile a library with DJGPP (MATCOM for DJGPP).
> the compile failed due to missing STRSTREAM.H. I thought that i had 
> all the files required to run DJGPP.

one possibility is that you did not download the packages needed to
compile C++ programs. the other possibility (which i had to deal with)
is that you installed win 95 after you installed djgpp. if you
subsequently turned on long filename support in djgpp.env, the search
will fail because strstream.h got extracted as strstrea.h under the 8.3
scheme, and now djgpp is looking for an exact match to strstream.h. you
can check if this is the case by looking in lang\cxx and seeing if there
is a file called strstrea.h. i do not know if a perfect solution to this
problem other than download the packages and extract them again. (simply
renaming would not work if you wanted to work in msdos mode rather than
in a dos window because the short name of the file would change into
strstr~1.h)

this is also documented in the faq in section 22.14.

OTOH, there is a registry hack that gets rid of the ~n stuff if the
first 8 characters of a file's name are unique in the directory. it is
documented in the book "The Windows 95 Registry" by John Woram.
Basically, you need to set
HKEY_LOCAL_MACHINE\System\CurrentControlSet\control\NameNumericTail
to 0. This will allow you to keep strstrea.h as the short name after you
rename the file to strstream.h

note that i have not tried this, and the author has a warning that says
some win 95 programs have problems recognizing long file or folder names
created without ~n.

i hope this helps.

   -- Sinan
 
*******************************************************************
 A. Sinan Unur                                WWWWWW
                                              |--O+O
 mailto:sinan DOT unur AT cornell DOT edu                C   ^ 
 http://www.people.cornell.edu/pages/asu1/     \  ~/ 
*******************************************************************

- Raw text -


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