- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- aCC Compiler confused with the symbols - major , m...
Operating System - HP-UX
1748235
Members
3542
Online
108759
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2004 07:10 AM
тАО11-04-2004 07:10 AM
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
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 # '
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
- Tags:
- evil macro
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2004 07:42 AM
тАО11-04-2004 07:42 AM
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2004 08:22 AM
тАО11-04-2004 08:22 AM
Re: aCC Compiler confused with the symbols - major , minor
the problem is
"major" "minor" are #ifdefed some where for unix devices.
Thanks
Manivannan
"major" "minor" are #ifdefed some where for unix devices.
Thanks
Manivannan
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP