[Top][All Lists]

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

undocumented implicit rules for C++ [.cpp suffix]

From: Manoj Srivastava
Subject: undocumented implicit rules for C++ [.cpp suffix]
Date: Sun, 23 Oct 2005 15:51:09 -0500
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) (i686-pc-linux-gnu)


            [Please retain the CC to address@hidden
             so that the Debian Bug Tracking system can record your

        This was reported by a debian user


        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

 10.2 Catalogue of Implicit Rules

 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


 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'.

To keep your friends treat them kindly; to kill them, treat them
Manoj Srivastava     <address@hidden>    <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C

reply via email to

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