On Tue, 24 Feb 2004, Ben Pfaff wrote: > Bob Friesenhahn <[EMAIL PROTECTED]> writes: > > > On Tue, 24 Feb 2004, Ben Pfaff wrote: > >> > > >> > Of course, when my source files are C++ files the _CFLAGS extension does > >> > nothing. Changing this to _CPPFLAGS fixed the problem. Duh. > >> > >> You know that CPPFLAGS is for the C preprocessor and CXXFLAGS is > >> for the C++ compiler, right? > > > > This distinction is not entirely correct since CPPFLAGS is normally > > supplied to the C++ compiler as well. CFLAGS is for the C compiler > > and CXXFLAGS is for the C++ compiler. > > Well, yes: C++ uses the C preprocessor.
Which is not really a great assumption since C++ is a different language and the C++ compiler vendor may not be the same as the C compiler vendor. The behavior of the C++ preprocessing may behave differently. Autoconf and Automake make a lot of assumptions when it comes to C++. Luckily the assumptions are correct more often than not. Bob ====================================== Bob Friesenhahn [EMAIL PROTECTED] http://www.simplesystems.org/users/bfriesen