
14 Jan
2009
14 Jan
'09
6:36 a.m.
Does anybody know if it's possible to use boost within a Linux driver?
short answer - from principle point of view: yes. A longer answer: probably without the full set of c++ language features. This means no exception handling (EH), no rtti. Some years ago I wrote a c++ kernel module (2.4.x). You have to write some stub for the c++ specific linker symbols from g++ e.g. __ctor, __dtor etc. There where some discussion on net about c++ modules inside linux kernel. You have to google for it. The problem is the c++ runtime library and some general problems, e.g. how to handle uncaught exceptions? kernel panic? not a real solution - therefore no EH. Regards, Olaf