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 UnixWare 2.X should be built with the SCO UnixWare 2.X C++ compiler and tools and C++ drivers for SCO OpenServer should be built with the SCO OpenServer compiler and tools.

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

Do not use the UnixWare and OpenServer Development Kit (UDK) C++ compiler to compile C++ drivers for SCO UnixWare 2.X or SCO OpenServer. The UDK compiler generates new section types that are not recognized by either the SCO UnixWare 2.X idld linker that is linked to ld(1) or the SCO OpenServer 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.


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