Topic: STL directory


Author: clamage@Eng.Sun.COM (Steve Clamage)
Date: 1998/01/21
Raw View
In article 1@news3.mr.net, "Dave Bender" <bendede@startribune.com> writes:
>Is there a "standard" or common directory to put the Standard Template
>Library header files?
>
>Seems like that ought to be together somewhere, not just dumped into
>/usr/include. /usr/include/STL seems like a logical spot, but I want to know
>if there's some established standard file location for these includes.

The C and C++ standards have nothing to say about directories at all,
nor the implementation of header files. Indeed, there is no requirement
that any physical files be involved, or if they are, that they are
actual C or C++ source files.

A standard-conforming compiler could have built-in knowledge about
the contents of, for example, <stdio.h>, and when it saw
 #include <stdio.h>
would simply enable the declarations it already knew about. An alternative
would be for the include directive to pull in a file of pre-digested
declarations, instead of a text file containing source code.

---
Steve Clamage, stephen.clamage@sun.com
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]