Hi Adam, I am using both C and C++ in my project. I think that hte reason why more people don't use C++ is that it is a pain in the butt to get working. Also, C++ is a lot more liberal about things like using malloc and free when doing object declaration in functions, etc. And malloc and RT don't really mix too well. With RTlinux you basically have to either do kmalloc in the init_module() or write your own memory heap allocator. Basically you use static objects for RT. Also, C++ is pretty strict, so when writing things like IO drivers, you have to cast the heck out of your data in order to read and write memory and the like. I am only using C++ because of the pass by reference operator, which I use in my API to pass a reference to and IO variable that the function will operate on. I may use objects in future api's but they are all functions now. I think the Real time programing paradigm makes it more difficult to use higher level tools such as OOP jsut because you need to be more aw! are of what is going on at a hardware level.
Hope this helps a bit. BTW, I am still having problems with my global constructors not being initialized. I have pointers in a structure (which in C++ are objects) which aren't getting initialized by do_global_ctors_aux() like it used to. I am compiling two different directories and then linking their resultant object files together at the last step. Both intermediat linking steps are doign the $(CRTBEGIN) $(CRTEND) stuff in the C++ example but it still doesn't work. Help!! ~Ken -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/