ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The last couple of days i'm have been trying to do some linux kernel module programming. I was trying to compile the first example "hello1". The makefile consist of the following :
A week ago when i type the command "make" everything went well. I had problems inserting this module with insmod. I decided to change the makefile and compile it again. But now i'm getting error message "gcc command cannot be found ". I updated redhat before I got this error message. I check to to see if the gcc version is the same as in the makefile, which was not the case. I change the line "CC:= gcc-3.0 to gcc-3.2.2" but i'm still getting the same error message. Can someone tell me what i am doing wrong? I have redhat 9.0
It works fine now.. I remember a few weeks ago i compiled it i use gcc command, seeing that it was C-file. Now compiling the hello.c with the makefile. it cause conflict with the old output file, which was still in the directory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.