Stop Microsoft
Miscellaneous => Programming & Networking => Topic started by: leoric1928 on 21 December 2002, 16:18
-
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
-
Do you know C++ or C? If not search on Google (http://www.google.com) 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
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)
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
As for GUI programs do a search on Google (http://www.google.com) and search for tutorials for this.
I hope this is of some use to you (http://smile.gif)
-
isnt the linux kernel done in c or c++ ?
-
quote:
Originally posted by Got Doogee?:
isnt the linux kernel done in c or c++ ?
yes it is done in C
-
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
-
quote:
Originally posted by 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
No - C++ Knowledge is not required. As for books I dont know any by name but recall seeing some in some bookshops not a month ago - so your best bet would be to find a good bookshop and look in the computers & programming sections.
-
http://www.kernelhacking.org/ (http://www.kernelhacking.org/)
[ December 21, 2002: Message edited by: X11 ]