Mail Archives: djgpp/1997/04/13/19:55:19
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 -