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

 
 

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

Submitted by:  Manoj Srivastava <srivasta>
Submitted on:  Sat 31 Dec 2005 03:23:44 PM UTC  
 
Severity: 3 - NormalItem Group: Documentation
Status: FixedPrivacy: Public
Assigned to: Paul D. Smith <psmith>Open/Closed: Closed
Component Version: NoneOperating System: None
Fixed Release: 3.81Triage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
Sat 31 Dec 2005 03:23:44 PM UTC, original submission:

Hi,

[Please retain the CC to -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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 01 Apr 2006 07:18:06 AM UTCpsmithFixed Release4.0=>3.81
    Tue 03 Jan 2006 06:51:27 AM UTCpsmithStatusNone=>Fixed
      Assigned toNone=>psmith
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.0
    Tue 03 Jan 2006 04:08:14 AM UTCpsmithCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1