Miscellaneous > Programming & Networking

Linux Programming

(1/2) > >>

leoric1928:
Good day,

   How can i learn linux programming? I don't mean any shell programming but the actual linux kernel program (the operating system).  Any url or good books or tutorial will be of great help. tnx

smokey:
Do you know C++ or C? If not search on Google for C/C++ tutorials.

If you do - start with console programs.  These are similar to wind0s console apps - you use a Main() function.

This is a very simple C++ program

--- Code: ---
--- End code ---

To compile this - you need the compile tools that are on your distro's cd.

Save this example into a file and compile it with the command (in the console)


--- Code: ---
--- End code ---

This command will compile the C++ code file "first.cpp" into the program file named first. It will use the file format called "a.out" (by default)

To run this program just type
--- Code: ---
--- End code ---

As for GUI programs do a search on Google and search for tutorials for this.

I hope this is of some use to you  

Doogee:
isnt the linux kernel done in c or c++ ?

smokey:

quote:Originally posted by Got Doogee?:
isnt the linux kernel done in c or c++ ?
--- End quote ---


yes it is done in C

leoric1928:
Tnx for your reply. I already know C, but not C++. Is C++ required in linux programming? or I can deal with it using C? Hope anyone can suggest any good book about linux programming. tnx again

Navigation

[0] Message Index

[#] Next page

Go to full version