Hi,
I tried to
compile log4cxx for for tru64 using the compaq compiler.
Unfortunately I ran into a lot of compiler errors.
Below is a script
to resolve a
few of the errors. This script strips the trailing semi-
colon from
namespace declarations.
for f in `find . -name "*.h"`; do
cp $f
$f.original
sed -e "s/}; \/\/name/} \/\/ name/g"
-e "s/}; \/\/ name/} \/\/ name/g" $f > $f.modified
mv $f.modified
$f
done
For instance:
namespace
log4cxx
{
{
...
}; // namespace
and
namespace
log4cxx
{
{
...
}; //namespace
gets
converted to:
namespace
log4cxx
{
{
...
} // namespace
Many
compilers do not mind the additional semi-colon, however
since
building on
tru64 automatically turns on strict ansi. This is results
is a lot of
errors (warnings if strict ansi is turned of). Compile
output looks
much cleaner with the semi-colons gone.
cheers,
Minto van
der Sluis
