bugmake - Bugs: bug #15337, undocumented implicit rules for...

 
 

bug #15337: undocumented implicit rules for C++ [.cpp suffix]

Submitter:  Manoj Srivastava <srivasta>
Submitted:  Sat 31 Dec 2005 03:23:44 PM UTC
   
 
Severity:  3 - Normal Item Group:  Documentation
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  None Operating System:  None
Fixed Release:  3.81 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 03 Jan 2006 06:51:27 AM UTC, comment #1: 

This has been fixed in the manual for the next release (GNU make 3.81).

Paul D. Smith <psmith>
Group administrator
Sat 31 Dec 2005 03:23:44 PM UTC, original submission:  

Hi,

            [Please retain the CC to -email is unavailable- so that the Debian Bug Tracking system can record your input]

        This was reported by a debian user

        manoj

        Make has an implicit rule for .cpp files, but this is not documented.  Observe:
,----
| __> cd /tmp; rm -f Makefile makefile
| __> touch foo.cpp
| __> make foo.o
|  g++    -c -o foo.o foo.cpp
`----

        The following sections of the documentation need to be updated:

 10.2 Catalogue of Implicit Rules
 ================================
 [snip]

 target `.SUFFIXES').  The default suffix list is: `.out', `.a', `.ln', `.o', `.c', `.cc', `.C', `.p', `.f', `.F', `.r', `.y', `.l', `.s', `.S', `.mod', `.sym', `.def', `.h', `.info', `.dvi', `.tex', `.texinfo', `.texi', `.txinfo', `.w', `.ch' `.web', `.sh', `.elc', `.el'.  All of

 [snip]

 Compiling C++ programs
      `N.o' is made automatically from `N.cc' or `N.C' with a command of the form `$(CXX) -c $(CPPFLAGS) $(CXXFLAGS)'.  We encourage you to use the suffix `.cc' for C++ source files instead of `.C'.

Manoj Srivastava <srivasta>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2006-04-01 psmith Fixed Release4.0 3.81
    2006-01-03 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.0
    2006-01-03 psmith Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code