- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- g++ problem when compiling under HP-UX 11
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
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
тАО05-08-2005 08:52 PM
тАО05-08-2005 08:52 PM
g++ problem when compiling under HP-UX 11
I have an odd cross-compilation issue. I recieved some code (which is written in mixed C/C++) which compiles with the FFTW library (www.fftw.org). It compiles under Redhat Linux with no problems, and runs fine.
However, when I compiled it using the HP-UX version of g++, I recieved no obvious warnings, but the code fails with a segmentation fault (core dump). According to gdb, the failure jumps around in the code between runs and occurs on simple lines (such as sending a string to cout).
I've been given the following advice about the compiler:
1. Reduce the optimisation level
2. Enforce strict syntax
3. Compile as static objects (larger executable)
I've tried no optimization, and debug-only (-g) optimization, but it seems to make no difference.
My question is twofold...
1. Can anyone help me to find relevent compiler switches which will allow me to try points 2 and 3 above (the documentaiton is long-winded and technical!)
2. Does anyone else have any suggestions as to what is causing the problem, and how to fix it?
The symptoms suggest a pointer problem, but it runs with no problems under Linux, and its completely baffling me!
Thanks for any help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2005 10:11 PM
тАО05-08-2005 10:11 PM
Re: g++ problem when compiling under HP-UX 11
hopefully the instructions http://hpux.ee.ualberta.ca/hppd/cgi-bin/wwwtar?/hpux/Physics/fftw-3.0.1/fftw-3.0.1-ss-11.11.tar.gz+fftw-3.0.1/HPUX.Install+text can help?
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2005 06:34 AM
тАО05-10-2005 06:34 AM
Re: g++ problem when compiling under HP-UX 11
You don't mention what version of gcc/g++ you are using. If it isn't at least 3.4, I would try updating the gcc/g++ compilers. You can get new ones from http://www.hp.com/go/gcc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2005 07:32 AM
тАО05-10-2005 07:32 AM
Re: g++ problem when compiling under HP-UX 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2005 07:15 PM
тАО05-10-2005 07:15 PM