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?
Printable View
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.
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?
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.
How about telling us where your instruction come from?
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.Quote:
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/