Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit


» HP STK home
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
Content starts here

critical impact:

__DECC_MODE_COMMON macro - not supported (CrUn333)

CC Impacts

Problem description

The __DEC_MODE_COMMON macro exists on Tru64 UNIX but not on HP-UX.

The __DEC_MODE_COMMON macro sets the compiler mode to common K&R.

On Tru64 UNIX, when -std0 is specified, the compiler will predefine the macro __DECC_MODE_COMMON to 1.


C/C++ Misc. Identifiers__DECC_MODE_COMMON  

See also

Solution description

K&R language mode is also not supported on HP-UX for Itanium®-based systems.

Convert your code to ANSI or extended ANSI mode.

On Tru64 UNIX, compile your code using the -std command option. This provides information on areas of your code that do not conform to the extended ANSI compilation mode.

On HP-UX, specify the -Ae command option to force the extended ANSI language mode.

The combination of these two preceding steps should help identify language mode difference in porting your code to HP-UX.

For additional information, see the Tru64 UNIX to HP-UX 11i Porting Guide.

See also

Problem summary

classifications source types OS release severity type
CC C, C++ any HP-UX 11i version critical unavailable
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.