- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- how to compile 64bit code using gcc under hpux 11i...
Operating System - Linux
1753846
Members
7600
Online
108807
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
Go to solution
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
тАО01-19-2007 12:46 AM
тАО01-19-2007 12:46 AM
Hi there,
am doing some c++ programming under hpux11i v1 using GNU gcc/g++ and what option should I use to generate 64bit code? thanks in advance.
am doing some c++ programming under hpux11i v1 using GNU gcc/g++ and what option should I use to generate 64bit code? thanks in advance.
Solved! Go to Solution.
- Tags:
- gcc
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2007 01:30 AM
тАО01-19-2007 01:30 AM
Solution
Depending what version and where you got it, you may have no choice but to compile 64-bit. The version on the Porting & Archive site has no 32-bit libraries. It will compile 32-bit libraries if given the option to do so (I think it's -mPA-RISC1.1 for 32-bit and -mPA-RISC2.0 for 64-bit), but final executable binaries relying on the standard supplied libraries will only compile as 64-bit. Discovered this when trying to compile a newer version of openssh a couple of months ago. I had to revert to an older 32-bit version of gcc we had retained in a depot to create 32-bit version of the package. Since you want 64-bit, you should be golden without any extra effort or options.
--
Jeff Traigle
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2007 01:52 AM
тАО01-19-2007 01:52 AM
Re: how to compile 64bit code using gcc under hpux 11iv1
Many thanks, Jeff. I once installed a gcc 4.1.0 which is downloaded from the porting and archieving center, and I also have HP gcc4.1.1 installed. I don't which version of gcc I am using, however, when I do #which gcc/g++, it gives me the HP one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2007 01:59 AM
тАО01-19-2007 01:59 AM
Re: how to compile 64bit code using gcc under hpux 11iv1
Hi John:
# gcc -v
...will show you the version and compiletime options.
Regards!
...JRF...
# gcc -v
...will show you the version and compiletime options.
Regards!
...JRF...
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