Operating System - HP-UX
1748235 Members
3542 Online
108759 Solutions
New Discussion юеВ

aCC Compiler confused with the symbols - major , minor

 
Manivannan
Occasional Contributor

aCC Compiler confused with the symbols - major , minor

Hi,

My class declaration has the following methods

// Get Methods
unsigned int major(void) const;
unsigned int minor(void) const;
when i compile the class, aCC compiler gives some weired errors.

aCC -I. -I/home/mani/QSM59-Unix/Source/Include +z -mt
-AA +W67 -DUNIX -DHPUX -DHPUX11_11 -DHPUX_PARISC_32
-D_INCLUDE__STDC_A1_SOURCE -g -D_DEBUG
-I/home/mani/QSM59-Unix/Source/ThirdPartyBin/include/ICU_v3_0_d02 Version.cpp
-c -o /home/mani/QSM59-Unix/Build/hpux11.11-parisc32/Debug/LibCommon/Version.o

Error 24: "/home/mani/QSM59-Unix/Source/Include/Version.h", line 36 # ':' expected instead of '('.
unsigned int major(void) const;
^^^^^
Error 20: "/home/mani/QSM59-Unix/Source/Include/Version.h", line 36 # '' expected before '>>'.
unsigned int major(void) const;
^^^^^
Error 24: "/home/mani/QSM59-Unix/Source/Include/Version.h", line 36 # ';' expected instead of ')'.
unsigned int major(void) const;
^^^^^
Error 331: "/home/mani/QSM59-Unix/Source/Include/Version.h", line 36 # Illegal cast expression; cannot cast expression type
'void' to 'unsigned int'.
unsigned int major(void) const;

Any help regarding this would be appreciated.

Thanks
Manivannan


2 REPLIES 2
Manivannan
Occasional Contributor

Re: aCC Compiler confused with the symbols - major , minor

I guess the symbol table is corrupted.

This is my compiler info
# what `which aCC`
/opt/aCC/bin/aCC:
$Revision: 92453-07 linker linker crt0.o B.11.37 040218 $
HP aC++ B3910B A.03.56
HP aC++ B3910B A.03.52 Language Support Library

# swlist -l patch |grep -i phss_32004
PHSS_32004.LANG-AUX 1.0 B.11.00 applied
# PHSS_32004 1.0 +O4/PBO Compiler B.11.11.10 cumulative patch
# PHSS_32004.LANG-AUX 1.0 B.11.00 applied

Thanks
Manivannan
Manivannan
Occasional Contributor

Re: aCC Compiler confused with the symbols - major , minor

the problem is

"major" "minor" are #ifdefed some where for unix devices.

Thanks
Manivannan