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
» 

DSPP Home

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

critical impact:

C compiler command options -std0 and -isoc94 - not available (CrUn328)

CC Impacts

Problem description

The -std0 and -isoc94 C compiler command options are supported on Tru64 UNIX but not on HP-UX.

The -std0 option selects the K&R language mode on Tru64 UNIX. This option enforces the K&R programming style, with certain ANSI extensions where the K&R behavior is undefined or ambiguous.

The -isoc94 command option causes the __STDC_VERSION__ macro to be passed to the preprocessor and enables recognition of digraph forms of various operators.

Identifiers

Command Arguments-isoc94 Command Arguments-std0      

See also

Solution description

Use the -Ae option to achieve similar results.

On HP-UX, the -Ae option supports extended ANSI mode. This is also the default on HP-UX. Depending on the extensions used in your code, this may be sufficient for your code to work on HP-UX.

Another option, while still on Tru64 UNIX, is to update your code using -std or -std1. The -std and -std1 options will perform checks and issue information on areas where your code may be incompatible with the HP-UX C compiler.

For more solutions and further information on language mode differences, see the Tru64 UNIX to HP-UX 11i Porting Guide.

See also


Problem summary

classifications source types OS release severity type
CC Make, Script 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.