- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- indef_unix_
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
Forums
Discussions
Discussions
Discussions
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
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
11-07-2006 03:40 AM
11-07-2006 03:40 AM
I am trying to run a C code which is succesfully running on Tru64 but is not running on HP-UX.
I have a doubt that it is failing because it is not able to resolve as to whether is it executed on unix environment or not .
Do i need to change "indef_unix_" to something else to run it on HP-UX system?
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2006 04:41 AM
11-07-2006 04:41 AM
Re: indef_unix_
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2006 06:27 AM
11-07-2006 06:27 AM
Solution1. Know what you mean by "not running".
2. Know what "indef_unix_" really is. If we
can believe the documentation, Compaq C on
Tru64 defines "__unix__", not "_unix_".
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN1/0607____.HTM
(Look for "C preprocessor macros".)
If you're using "_unix_", who is defining it
on Tru64?
3. See some of the actual code.
4. See how you're compiling it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2006 06:40 AM
11-07-2006 06:40 AM
Re: indef_unix_
provide some information on the macros
defined by the compiler/preprocessor on
HP-UX. (Knowing which compiler you're using,
and the system type, might also be
interesting.)
A quick look suggests that "__unix" is more
likely than "__unix__" on HP-UX, but these
things may depend on the compiler options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2006 07:53 PM
11-07-2006 07:53 PM