octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45644] Build system distributes .cc files in


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #45644] Build system distributes .cc files in include/octave directory
Date: Thu, 11 Nov 2021 15:21:35 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Update of bug #45644 (project octave):

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #6:

Looking at old bug reports...

Except for graphics-props.cc, these files all define template functions and
are included in the corresponding header files to provide complete definitions
so that instantiation of the templates are possible.  The functions could also
just be provided inside the header files but that could make the header files
somewhat harder to understand.

In the GNU libstdc++ header files, these kinds of files use the extension
'.tcc' instead of '.cc' and the '.tcc' files are unconditionally included in
the corresponding header file (so <string> includes both <bits/basic_string.h>
and <bits/basic_string.tcc>).  In the '.tcc' file, there may be 'extern
template FOO<TYPE>' declarations for templates that are explicitly
instantiated elsewhere, presumably to help speed up compiling.  Maybe we could
do something similar?

The following change works for me to prevent graphics-props.cc from being
installed:

http://hg.savannah.gnu.org/hgweb/octave/rev/4730becad0b1

I'm closing this report as fixed.  I propose we discuss possible rearrangement
of header files elsewhere.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?45644>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]