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

Choosing a C++ version

Device drivers should be built with the compiler, linker, and other tools from the operating system that was used to build the rest of the kernel. Accordingly, C++ drivers for SCO SVR5 2.X should be built with the SCO SVR5 2.X C++ compiler and tools and C++ drivers for SCO OpenServer 5 should be built with the SCO OpenServer 5 compiler and tools.

The UDK C++ compiler is the SVR5 C++ compiler and so can be used to generate C++ device driver binaries to run on SVR5.

Do not use the UnixWare and OpenServer Development Kit (UDK) C++ compiler to compile C++ drivers for SCO SVR5 2.X or SCO OpenServer 5. The UDK compiler generates new section types that are not recognized by either the SCO SVR5 2.X idld linker that is linked to ld or the SCO OpenServer 5 ld(CP) linker that is used during kernel builds.

In other words, the UDK cannot create universal device driver binaries for C++ drivers (or for C device drivers). Device drivers must always be compiled specifically for the operating system on which they will be installed.


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