[Top][All Lists]

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

Re: source code type detection

From: Ralf Wildenhues
Subject: Re: source code type detection
Date: Wed, 23 Jan 2008 23:45:16 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Hello Nicolas,

* Nicolas Bock wrote on Wed, Jan 23, 2008 at 11:35:10PM CET:
> I wrote a which includes a source file called b.C, which is
> a C-source and not a C++-source. In I have AC_PROG_CC. When
> I run automake I get the error message:
> C++ source seen but `CXX' is undefined
>   The usual way to define `CXX' is to add `AC_PROG_CXX'
>   to `' and run `autoconf' again.
> So I guess automake interprets b.C to be C++. How can I tell automake
> that it's really C?

You shouldn't.  Some compilers will invariably treat your .C file as
being a C++ file.  So to be portable, let your C files end in .c (and
your C++ files in .cpp).

Hope that helps.


reply via email to

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