www.digitalmars.com         C & C++   DMDScript  

c++.stl - #include <string> fails... under Digital Mars Compiler V8.20

reply "news.digitalmars.com" <noemail noemail.com> writes:
I recently downloaded Digital Mars Compiler V8.20...

Digital Mars C/C++ Compiler Version 8.20 (2,765,000 bytes) (NEW!)
Contains:
Win32 console versions of the tools
C and C++ compiler
Linker
Librarian
Standard and win32 header files
Runtime linkable libraries
Does not come with a debugger, but works with the Symantec or Microsoft
debuggers
SGI's Standard Template Library 3.3

and out of the "box" (meaning the only think I did, was add added the bin
directory to my environment path), it would not compile this simple
program...

//-------
#include <string>

void main()
{
}
//-------

choking on the string include, it gave the error...
Fatal error: unable to open input file 'string'

Please note that it compiles with the standard <string.h> header just fine
(as well as stdio.h, etc). But the C++ header <string> just won't work.

I modified my SC.INI file to look like the following...

[Version]
version=7.51 Build 020

[Environment]
PATH=%PATH%;"% P%\..\bin"
BIN="% P%\..\bin"
INCLUDE="% P%\..\stl";"% P%\..\include";"% P%\..\mfc\include";%INCLUDE%
LIB="% P%\..\lib";"% P%\..\mfc\lib";%LIB%
HELP="% P%\..\help"


where I have added the "% P%\..\stl"; to the beginning of the INCLUDE=

interestingly enough, i do not have a strings.h in my \stl directory. here
is a list of my stl directory

 Volume in drive C has no label.
 Volume Serial Number is 80B2-7218

 Directory of C:\c\dm\stl

10/25/01  01:03p        <DIR>          .
10/25/01  01:03p        <DIR>          ..
06/08/00  03:10p                 3,182 algo.h
06/08/00  03:10p                 2,086 algobase.h
06/08/00  03:10p                 1,310 alloc.h
06/08/00  03:10p                 1,497 bvector.h
06/08/00  03:10p                 4,137 char_traits.h
06/08/00  03:10p                28,902 concept_checks.h
06/08/00  03:10p                 9,505 container_concepts.h
06/08/00  03:10p                 2,331 defalloc.h
06/08/00  03:10p                 1,403 deque.h
06/08/00  03:10p                 3,327 function.h
06/08/00  03:10p                 1,559 hashtable.h
06/08/00  03:10p                 1,516 hash_map.h
06/08/00  03:10p                 1,474 hash_set.h
06/08/00  03:10p                 1,427 heap.h
06/08/00  03:10p                 2,998 iterator.h
06/08/00  03:10p                 1,373 list.h
06/08/00  03:10p                 1,453 map.h
06/08/00  03:10p                 1,478 multimap.h
06/08/00  03:10p                 1,478 multiset.h
06/08/00  03:10p                 1,518 pair.h
06/08/00  03:10p                   866 pthread_alloc.h
10/06/01  01:41p                   307 readme.txt
06/08/00  03:10p                   909 rope.h
10/01/01  12:41a                50,073 ropeimpl.h
06/08/00  03:10p                 7,100 sequence_concepts.h
06/08/00  03:10p                 1,453 set.h
06/08/00  03:10p                   830 slist.h
06/08/00  03:10p                 1,466 stack.h
10/01/01  12:43a               116,619 stl_algo.h
06/08/00  03:10p                24,334 stl_algobase.h
06/08/00  03:10p                29,001 stl_alloc.h
06/08/00  03:10p                27,207 stl_bvector.h
10/16/01  10:45p                21,918 stl_config.h
06/08/00  03:10p                 3,639 stl_construct.h
06/08/00  03:10p                 2,160 stl_ctraits_fns.h
06/08/00  03:10p                53,591 stl_deque.h
06/08/00  03:10p                 1,715 stl_exception.h
06/08/00  03:10p                22,860 stl_function.h
06/08/00  03:10p                33,026 stl_hashtable.h
06/08/00  03:10p                 2,818 stl_hash_fun.h
06/08/00  03:10p                20,496 stl_hash_map.h
06/08/00  03:10p                19,611 stl_hash_set.h
06/08/00  03:10p                10,097 stl_heap.h
06/08/00  03:10p                30,011 stl_iterator.h
06/08/00  03:10p                12,213 stl_iterator_base.h
06/08/00  03:10p                25,927 stl_list.h
06/08/00  03:10p                10,688 stl_map.h
06/08/00  03:10p                10,638 stl_multimap.h
06/08/00  03:10p                 9,640 stl_multiset.h
06/08/00  03:10p                 8,120 stl_numeric.h
06/08/00  03:10p                 2,975 stl_pair.h
06/08/00  03:10p                 7,529 stl_queue.h
06/08/00  03:10p                 2,167 stl_range_errors.h
06/08/00  03:10p                 2,595 stl_raw_storage_iter.h
06/08/00  03:10p                 1,828 stl_relops.h
06/08/00  03:10p                99,883 stl_rope.h
06/08/00  03:10p                 9,460 stl_set.h
06/08/00  03:10p                32,237 stl_slist.h
06/08/00  03:10p                 4,301 stl_stack.h
06/08/00  03:10p                 1,114 stl_string_fwd.h
06/08/00  03:10p                 4,897 stl_tempbuf.h
06/08/00  03:10p                12,731 stl_threads.h
06/08/00  03:10p                44,695 stl_tree.h
06/08/00  03:10p                 9,355 stl_uninitialized.h
06/08/00  03:10p                28,603 stl_vector.h
06/08/00  03:10p                 1,898 tempbuf.h
10/25/01  01:03p                     0 tmp
06/08/00  03:10p                 1,423 tree.h
06/08/00  03:10p                12,934 type_traits.h
06/08/00  03:10p                 1,408 vector.h
              72 File(s)        915,320 bytes
                          6,993,953,792 bytes free

did my download fail to include some files I needed?? If so, where can I get
the missing files? If not, any ideas on getting this to compile??
Oct 25 2001
parent "Walter" <walter digitalmars.com> writes:
I screwed up zipping the download files. The stl include files with no
extension got skipped by the zipper.

I've redone the zips and reposted them with the missing files.

Sorry,
-Walter
Oct 25 2001