Steven T. Hatton wrote:
This is another point of consternation for me. I see a lot of C++ source with the .cpp extension. It's not a big deal, but it does complicate things such as file type filtering, etc. And most C++ source I've seen comes with headers in *.h files. I tend to favor .hpp, since the .h is used in C as well as C++. I looked in the gcc-3.2.3/libstdc++-v3/src/ and .cc is the winner. They don't have any header files, so I can't judge by that.
Shouldn't be a problem with autotools. The rules for handling .cpp are the same as those for .cc and there are header files don't get compiled directly.
== ## Process this file with automake to produce Makefile.in
Oh, and the bloody ## is some kind of magic comment, no? ...
No magic, just a comment. Automake comments IIRC always use two hashes.
# -*- Autoconf -*- Do I smell Emacs?
No. This comes from autoscan output. Autotools works just fine without emacs installed. Come to think of it, I probably don't have emacs installed.
Thanks. That looks quite usefull. I need to try what Phillipp suggested as well.
Philipp's is the easier version. It's only necessary to write your own if you do something nonstandard. -- JDL Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.