Appendix C. HP-UX to Linux Reference Tables

In this appendix

HP-UX and Linux C Compiler Options Table

Table C-1. HP-UX ANSI cc and gcc Compiler Switches Comparison Table

HP cc Option[1]

GNU gcc Option[2]

Description

-A[a|c|e]

-ansi

 
 

-std=standard

Specifies the degree of ANSI compliance.

-Bextern

None

Performs the same operation as +Oextern=sym1,sym2,sym3... except that symbols are loaded from an existing file, instead of specified on the command line.

-Bhidden

None

Hides all the symbols including references except for those prefixed with__declspec(dllexport) ...

Get UNIX to Linux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.