What does this mean -:
I had to make a few changes to a C++ header file that runs in kernel mode. And after making the changes, I have to compile that header file in user mode. What does it mean?
What does this mean -:
I had to make a few changes to a C++ header file that runs in kernel mode. And after making the changes, I have to compile that header file in user mode. What does it mean?
You don't compile header files. Header files are included in .cpp files which are compiled.
If you understand what you're doing, you're not learning anything.
Right, I made a few changes in the header file. So now I have to compile this in usermode ..how do i do that?
Umm, with the gcc/g++ program?
Do you know how to compile a program? Where exactly are you stuck?
If you understand what you're doing, you're not learning anything.
how am i supposed to compile in user mode ..wat does this mean? write a makefile and then compile?
makefiles just simplify the job of compiling complicated multi-file projects.
g++ myprog.cpp is adequate to compile a program.
If you understand what you're doing, you're not learning anything.
How about telling us where your instruction come from?
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
I guess my doubt was useless. User mode is the normal compiling ..and its the kernel mode compilation thts different.
There is no such mode as "kernel mode compilation". "User mode compiling" is when a regular user is compiling (not root). You could still compile the program under root, as well. And show us what program you're trying to compile, and we may be able to help you better.Originally Posted by learner01
If you're editing a file that's to be compiled into the kernel, edit the file, and then compile the kernel the way you normally do:
http://www.freeos.com/articles/2589/
Last edited by joeprogrammer; 08-10-2006 at 08:22 PM.