- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- HP_ALIGN and gcc/g++ compiler
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
тАО08-15-2006 12:47 AM
тАО08-15-2006 12:47 AM
I have some legacy data/file structures that require the HP_ALIGN HPUX_WORD pragma. Will gcc/g++ (version 3.4.2) really understand the HP specific pragma, or I'm I just lucky with the data structure aligning properly?
I wrote a small test program using the pragma in a .h file included in a .c file that reads a n old file, then created a simple .cpp file that calls the function to read the file:
gcc -g -o test test.cpp my_c.c
Background:
I have Qt 4.1x and tried to compile it with aCC version 3.30, but receive errors.... Trolltech believes it a compiler bug. In any case, I can compile it with gcc, therefore I do not want to mix and mash a program using two different compilers.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2006 01:11 AM
тАО08-15-2006 01:11 AM
Re: HP_ALIGN and gcc/g++ compiler
I don't think gcc is going to handle this code.
Sounds like you need an HP compiler for this, which will cost you a few shekels or dollars local currency.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2006 01:40 AM
тАО08-15-2006 01:40 AM
Re: HP_ALIGN and gcc/g++ compiler
Thanks for the response. I just did an inventory.xml and checked for patches for my aCC v3.30. Downloading them now.
In the mean time, I'm able to compile my test program with gcc and it seems to work (reading the files containing the data structures). Didn't know if the gcc version for HPUX somehow recognizes the HP specific pragmas or it was just a fluke.
I included a the sample program.
Regards,
Craig.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2006 02:17 AM
тАО08-15-2006 02:17 AM
Re: HP_ALIGN and gcc/g++ compiler
You are running a very old version of aCC so my first action would be to come up to the latest version and then to check for patches for it as well.
I've never had any problems compiling/running Qt with aCC or gcc but I don't use gcc on HP-UX boxes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2006 08:56 AM
тАО08-15-2006 08:56 AM
Re: HP_ALIGN and gcc/g++ compiler
I'm surprised that it works with gcc, not sure why and whether to trust it. I could compile the C code into object code or a library with HP C or aCC and just include it with the gcc compilation.
Used HP's depot evaluation tool and downloaded the depots it listed for aCC 3.3, but it appears that not all dependencies got listed, need to do it manually. Blew budget on Qt, aCC purchase will have to wait.
The legacy data structures were used in a commerical product that I need to stay compatible with. It was developed on the 300/400, as was my initial software and used the push/pop when we went to 700s.
My first Unix program was developed on a 300 (with curses) interfacing with GPIO tape drives :-).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2006 12:01 PM
тАО08-15-2006 12:01 PM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2006 03:24 PM
тАО08-15-2006 03:24 PM
Re: HP_ALIGN and gcc/g++ compiler
A.03.30 is over 5 years old and not supported. It's only patch is A.03.31, PHSS_25170. The latest PA version is A.03.70.
- Tags:
- pack pragma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2006 03:43 PM
тАО08-15-2006 03:43 PM
Re: HP_ALIGN and gcc/g++ compiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2006 01:07 AM
тАО08-16-2006 01:07 AM