DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Writing drivers in C++

Run Time Type Information (RTTI)

Do not use Run-Time Type Information (RTTI) facilities within a device drivers. This means dynamic_cast expressions, typeid expressions, and related data structures. This is not an issue for SCO SVR5 2.X and SCO OpenServer 5, which do not support RTTI.

This restriction is necessary because these operators are defined to throw exceptions in the event of failed operations.

Because RTTI facilities are not used within a driver, SVR5 driver source code should be compiled with the following (undocumented) compiler option to ensure that no unnecessary and wasteful dynamic type information is generated into data sections.

   CC -Wf,--no_rtti

© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005