Menu

#56 class "sc::AtomInfo::atom" is inaccessible

mpqc/trunk
open
nobody
other (15)
5
2012-07-22
2012-03-18
No

I get this error:

jeff@megatron:~/eclipse/MPQC/build-tau/src/lib/chemistry/molecule> make
/software/tau/install/x86_64/bin/tau_cxx.sh -DHAVE_CONFIG_H -D_REENTRANT -DSRCDIR=\"/home/jeff/eclipse/MPQC/src/lib/chemistry/molecule\" -I../../../../src/lib -I/home/jeff/eclipse/MPQC/include -I/home/jeff/eclipse/MPQC/src/lib -I/home/jeff/eclipse/MPQC/src/lib/chemistry/cca/server -I/usr/include -I/software/mpich/mpich2-trunk/install-gcc/include -O2 -c /home/jeff/eclipse/MPQC/src/lib/chemistry/molecule/atominfo.cc -o atominfo.o
"/home/jeff/eclipse/MPQC/src/lib/chemistry/molecule/atominfo.cc", line 49: error:
class "sc::AtomInfo::atom" (declared at line 49 of
"/home/jeff/eclipse/MPQC/src/lib/chemistry/molecule/atominfo.h") is
inaccessible
struct AtomInfo::atom
^

The explanation is that the struct inside of this class has no name (I gave it one ("xxx") to suppress the error):

class AtomInfo: public SavableState {
private:
enum { Nelement = 118, DefaultZ = 0 };

struct atom
{
  int Z;
  const char *name;
  const char *symbol;
} xxx;

Discussion

Anonymous
Anonymous

Add attachments
Cancel