HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- DEFINES option for c compilation in HP UX
Operating System - HP-UX
1833770
Members
2258
Online
110063
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
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
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
06-16-2003 08:56 PM
06-16-2003 08:56 PM
DEFINES option for c compilation in HP UX
For Borland the following DEFINES are used
DEFINES=__WIN32__,_Windows,__CDECL__
For Solaris the following DEFINES are used
DEFINES=__SunOS_5_6,__SUNPRO_C=0x500,__SVR4,__unix,__sun,__sparc,__BUILTIN_VA_ARG_INCR,__PRAGMA_REDEFINE_EXTNAME,unix,sun,sparc,__RESTRICT,_FILE_OFFSET_BITS=32
Similarly what are the DEFINES that must be used for HP UX ?
DEFINES=__WIN32__,_Windows,__CDECL__
For Solaris the following DEFINES are used
DEFINES=__SunOS_5_6,__SUNPRO_C=0x500,__SVR4,__unix,__sun,__sparc,__BUILTIN_VA_ARG_INCR,__PRAGMA_REDEFINE_EXTNAME,unix,sun,sparc,__RESTRICT,_FILE_OFFSET_BITS=32
Similarly what are the DEFINES that must be used for HP UX ?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2003 12:48 AM
06-17-2003 12:48 AM
Re: DEFINES option for c compilation in HP UX
Ravi,
I will start with some basic stuff. I dont know what does all in the above list mean. This differs depending upon the hpux you use.
-D_HPUX_SOURCE -D_REENTRANT -Dunix -Dhpux -Dhp9000sXXX
where XXX will be 800 or 900 depending upon your architecture.
If you give more details on which OS and architecture, then other forumers may help out.
HTH,
Umapathy
I will start with some basic stuff. I dont know what does all in the above list mean. This differs depending upon the hpux you use.
-D_HPUX_SOURCE -D_REENTRANT -Dunix -Dhpux -Dhp9000sXXX
where XXX will be 800 or 900 depending upon your architecture.
If you give more details on which OS and architecture, then other forumers may help out.
HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2003 07:38 AM
06-17-2003 07:38 AM
Re: DEFINES option for c compilation in HP UX
There is a list of possible predefined macros under the -U option in 'man cpp' The list will
vary for different hardware. (The newer Itanium based systems define __ia64.)
--------------------------------------------
-Uname Remove any initial definition of name, where name is a
reserved symbol that is predefined by the particular
preprocessor. The current list of these symbols
includes:
Operating system: unix __unix
Hardware: hp9000s200 hp9000s300 __hp9000s300
hp9000s500 hp9000s800 __hp9000s800
hp9000ipc hppa __hppa
_PA_RISC1_0 _PA_RISC1_1 _SIO _WSIO
UNIX systems variant: hpux __hpux
_HPUX_SOURCE PWB
_PWB
lint(1): lint __lint
In addition, all symbols that begin with an underscore
and either an upper-case letter or another underscore
are reserved. Other symbols may be defined by the
CCOPTS variable or other command-line options to the C
compiler at compile time (see cc(1)). All HP-UX
systems have the symbols PWB, hpux, unix, _PWB, __hpux,
and __unix defined. Each system defines at least one
hardware variant, as appropriate. The lint symbols are
defined when lint(1) is running. See DEPENDENCIES.
Two special names are understood by cpp. __LINE__ is defined as the
current line number (as a decimal integer) as counted by cpp.
__FILE__ is defined as the current file name (as a C string) as known
by cpp. They can be used anywhere (including in macros) just as any
other defined names.
--------------------------------------------
vary for different hardware. (The newer Itanium based systems define __ia64.)
--------------------------------------------
-Uname Remove any initial definition of name, where name is a
reserved symbol that is predefined by the particular
preprocessor. The current list of these symbols
includes:
Operating system: unix __unix
Hardware: hp9000s200 hp9000s300 __hp9000s300
hp9000s500 hp9000s800 __hp9000s800
hp9000ipc hppa __hppa
_PA_RISC1_0 _PA_RISC1_1 _SIO _WSIO
UNIX systems variant: hpux __hpux
_HPUX_SOURCE PWB
_PWB
lint(1): lint __lint
In addition, all symbols that begin with an underscore
and either an upper-case letter or another underscore
are reserved. Other symbols may be defined by the
CCOPTS variable or other command-line options to the C
compiler at compile time (see cc(1)). All HP-UX
systems have the symbols PWB, hpux, unix, _PWB, __hpux,
and __unix defined. Each system defines at least one
hardware variant, as appropriate. The lint symbols are
defined when lint(1) is running. See DEPENDENCIES.
Two special names are understood by cpp. __LINE__ is defined as the
current line number (as a decimal integer) as counted by cpp.
__FILE__ is defined as the current file name (as a C string) as known
by cpp. They can be used anywhere (including in macros) just as any
other defined names.
--------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2003 07:44 AM
06-17-2003 07:44 AM
Re: DEFINES option for c compilation in HP UX
Sorry for chatting ...
Mike Stroyan, please visit this link
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa21f5fe8b250d71190080090279cd0f9,00.html
Volkmar
Mike Stroyan, please visit this link
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa21f5fe8b250d71190080090279cd0f9,00.html
Volkmar
*** Say 'Thanks' with Kudos ***
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP