Unix True 64 - Problems compiling kdepim-3.2.0 on Tru64 UNIX 5.1

This is Interesting: Free IT Magazines  
Home > Archive > Unix True 64 > March 2004 > Problems compiling kdepim-3.2.0 on Tru64 UNIX 5.1





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problems compiling kdepim-3.2.0 on Tru64 UNIX 5.1
Albert Chin-A-Young

2004-03-09, 12:35 pm

$ cxx -V
Compaq C++ V6.5-040
$ cat a.h
namespace KMail {
class FolderJob {
FolderJob();
};
}
$ cat b.cpp
#include "a.h"

namespace KMail {
class FolderJob;
}
using KMail::FolderJob;

class Foo
{
friend class FolderJob;
};

$ cxx -c b.cpp
cxx: Error: b.cpp, line 10: "FolderJob" has already been declared in the
current scope
friend class FolderJob;
---------------^
cxx: Info: 1 error detected in the compilation of "b.cpp".

Is this a bug in the compiler? I've tried this against the Sun C++
compilers, HP C++ compiler, and GCC and they don't have a problem. Only
the Tru64 UNIX C++ and SGI compiler fail with the above error.

--
albert chin
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com