[Top][All Lists]

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

Re: C++ and .cp extension

From: Peter Rosin
Subject: Re: C++ and .cp extension
Date: Mon, 20 May 2013 08:41:41 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

On 2013-05-19 18:57, John Andreasson wrote:
> Hi.
> I have an old C++ project that I'm modernizing, and part of the process
> involves migrating to Autotools.
> All source files uses the .cp extension. I know it's not common, but many
> compilers recognize it as C++. Automake doesn't do that however.
> I guess I could rename all of them to end in something that Automake
> recognizes, like .cc. But I would like to ask if there's a way to make
> Automake accept .cp first?
> I have searched the documentation, but all I can find is the list of
> supported file extensions. I think there must be a way to explicitly tell
> it to use other extensions as well.

There are compilers that does not like 'strange' extensions, so in order
to be maximally portable you should stick to something standard like .cpp
or .cc, which is just the other side of your statement in the second
paragraph I guess (many != all).

I know this doesn't answer your question about Automake and .cp, but I
don't have an answer to that, sorry.


reply via email to

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