[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Fw: ac_ext problems
From: |
Zvezdan Petkovic |
Subject: |
Re: [Groff] Fw: ac_ext problems |
Date: |
Fri, 6 May 2005 15:09:11 -0400 |
User-agent: |
Mutt/1.4.2i |
On Fri, May 06, 2005 at 01:59:21PM +0200, Werner LEMBERG wrote:
> > Is there any reason to stay with `.cc' as the extension for C++ files
> > for the autoconf tests, given that `.cpp' is much more portable?
>
> Not that I know of. I installed your patch. Thanks.
Sorry I didn't follow this thread and exact reason to change.
I see this as a good reason to leave it as .cc
$ cat tryme.cc
int main(int argc, char *argv[])
{
return 0;
}
$ make tryme
c++ -O2 -o tryme tryme.cc
$ rm tryme
$ mv tryme.cc tryme.cpp
$ make tryme
make: don't know how to make tryme. Stop in /home/zvezdan.
$ gmake tryme
g++ tryme.cpp -o tryme
Obviously only gmake recognizes .cpp as a C++ file on a Unix system.
With older version of gmake on a different Unix machine .cpp has not
been recognized.
Regards,
Zvezdan Petkovic