Re: where is the definition?
On Sep 23, 3:44 pm, Tonni Tielens <tonnitiel...@gmail.com> wrote:
On Sep 23, 11:53 am, "Jim Z. Shi" <ji...@cisco.com> wrote:
where is the definition?
Depends on the compiler. The definition can be in a
precompiled library or in a seperate source file.
Or built into the compiler, or in a database somewhere, or
whatever the implementation wants. The name of the file he gave
reminds me of g++, however, where the standard library is in
files, with most of the actual code in a sub-directory bits,
with the class definitions and inline functions in .h files and
the template implementations in .tcc files. If the original
poster is asking about g++, given that there is a file
bits/deque.tcc, that's where I'd look.
More generally, if I want to find out about the actual contents
of a header, I'll write a one line program which includes it;
most compilers have an option which will generate the
preprocessor output (usually -E or /E), which will contain the
code (with all macros expanded) and #line declarations
specifying where it comes from.
James Kanze (GABI Software) email:firstname.lastname@example.org
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34