Operating System - HP-UX
1832512 Members
4660 Online
110043 Solutions
New Discussion

Error No. 566, may not have this storage class

 
Vishnu_10
New Member

Error No. 566, may not have this storage class

We did a platform upgrade on Unix from HP Ux 11.0 to HP Ux 11i. I have a program which used to compile perfectly on the old platform. However the same program doesnt compile on new platform. Following is the error message am getting.

Error 566: "bfscq600.cpp", line 510 # Static class member "AISEnv AISEnv::envTable[]" may not have this storage class.

Following are some lines in the code:

static AISEnv AISEnv::envTable[] = {
{ "INPUT_PATH", NULL },
{ "OUTPUT_PATH", NULL },
{ NULL, NULL }
};

Can anybody please help me resove this issue. Please.
5 REPLIES 5
Cheryl Griffin
Honored Contributor

Re: Error No. 566, may not have this storage class

You upgraded the operating system and how about the applications? What compiler and version are you using?
"Downtime is a Crime."
Vishnu_10
New Member

Re: Error No. 566, may not have this storage class

Am using ANSI C++ compiler. aCC. Am not sure, which version though. Is there anyway for me to find out the version of aCC?
Cheryl Griffin
Honored Contributor

Re: Error No. 566, may not have this storage class

To check version:
# aCC -v
#swlist -l fileset | grep -i ansi
"Downtime is a Crime."
Vishnu_10
New Member

Re: Error No. 566, may not have this storage class

aCC -v on new server gave the following results aCC: HP ANSI C++ B3910B A.03.37 and on old server aCC: HP ANSI C++ B3910B A.03.13.

Looks like new version is A.03.37.


Following are the results for swlist command.

On new server (HP UX 11.11)

C-ANSI-C B.11.11.06 HP/ANSI C Compiler

On old server (HP UX 11.00)

# C-ANSI-C B.11.01.06 HP C/ANSI C Compiler
C-ANSI-C.C B.11.01.06 C Programming Language
C-ANSI-C.C-HELP B.11.01.06 C Online help
C-ANSI-C.C-MAN B.11.01.06 C References Pages
# PHSS_18300 1.0 ANSI C compiler cumulative patch.


Vishnu_10
New Member

Re: Error No. 566, may not have this storage class

Anyone has any suggestions? Please help me in resolving this issue.