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 UnixWare 2.X and SCO OpenServer, 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, UnixWare 7 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

© 1999 The Santa Cruz Operation, Inc. All rights reserved.
HDK 7.1.0 - June 1999