Compiler Options

To compile a kernel extension in 64-bit mode, the -q64 flag must be used.

To check for missing function prototypes, -qinfo=pro can be specified. To compile in ANSI mode, use the -qlanglvl=ansi flag. When this flag is used, additional error checking will be performed by the compiler. To link-edit a kernel extension, the -b64 option must be used with the ld command.

Note: Do not link kernel extensions using the cc command.