- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- g++ 64 bit compile option?
Operating System - HP-UX
1824809
Members
4277
Online
109674
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
Forums
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
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
тАО12-12-2002 10:41 PM
тАО12-12-2002 10:41 PM
g++ 64 bit compile option?
successful install gcc64
but...
try this:
kmts@root::/usr/local/pa20_64/bin>file gcc
gcc: ELF-64 executable object file - PA-RISC 2.0 (LP64)
kmts@root::/usr/local/pa20_64/bin>file g++
g++: ELF-64 executable object file - PA-RISC 2.0 (LP64)
#gcc -o test test.c
#file test
test: ELF-64 executable object file - PA-RISC 2.0 (LP64)
#g++ -o test test.cpp
/usr/local/pa20_64/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated.
do you know g++ 64 bit compile option?
but...
try this:
kmts@root::/usr/local/pa20_64/bin>file gcc
gcc: ELF-64 executable object file - PA-RISC 2.0 (LP64)
kmts@root::/usr/local/pa20_64/bin>file g++
g++: ELF-64 executable object file - PA-RISC 2.0 (LP64)
#gcc -o test test.c
#file test
test: ELF-64 executable object file - PA-RISC 2.0 (LP64)
#g++ -o test test.cpp
/usr/local/pa20_64/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the
do you know g++ 64 bit compile option?
cyber_dol
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2002 11:03 PM
тАО12-12-2002 11:03 PM
Re: g++ 64 bit compile option?
If your gcc/g++ is ELF 64, it can *only* produce 64bit code. You need a seperate gcc/c++ to produce 32bit code. There is no option (yet) to switch from 32 to 64 bit or back.
There /is/ an option to switch architecture, and it /does/ have effect: -mpa-risc-2-0 / -mpa-risc-1-1 (or something like that) check with 'gcc -v --help'
There /is/ an option to switch architecture, and it /does/ have effect: -mpa-risc-2-0 / -mpa-risc-1-1 (or something like that) check with 'gcc -v --help'
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2002 11:30 PM
тАО12-12-2002 11:30 PM
Re: g++ 64 bit compile option?
I'm success..
test code is bad
bad code
#include
int main()
{
cout <<"test\n";
return 0;
}
success code
#include
int main()
{
using namespace std;
cout <<"test\n";
return 0;
}
test code is bad
bad code
#include
int main()
{
cout <<"test\n";
return 0;
}
success code
#include
int main()
{
using namespace std;
cout <<"test\n";
return 0;
}
cyber_dol
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.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP