On Tuesday 24 July 2001 22:57, Michael Zhang wrote:
> hello all,
>
> I am trying to load c++ files to kernel now. My case is: I need load
> pr1.cpp to kernel, but in pr1.cpp I inlcude "src.h" and "src.cpp" is
> also in the same directory. I know how to load only one c++ file, but
> have no idea for more than one files like the above one. Can anyone
> drop me a line?
The easiest way is to just compile all .cpp files at once, in the same
g++ command line. (gcc/g++ accepts .a, .o and various other file types as
well as .c and.cpp as input.)
Another way is to compile the files separately, and then link them into
one module using ld directly.
//David Olofson --- Programmer, Reologica Instruments AB
.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------> http://www.linuxaudiodev.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`--------------------------------------> [EMAIL PROTECTED] -'
----- End of forwarded message from [EMAIL PROTECTED] -----
-- [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/