Code: |
Int main(){
Printf(ˇ§Hello, worldˇ¨); } |
Code: |
gcc test.c |
Code: |
gcc test.c -o test1 |
Code: |
#include <SDL/SDL.h> |
Code: |
gcc test.c -o test1 -L/usr/lib -ISDL |
Code: |
sh ./configure |
Viggel wrote: |
Nice tut Gsecure, you might want to add that if they want to run test1 if they're in that directory where it is to type ./test1 and you can see the output of the file but that's more programming now.
Lepri I take it you done make xconfig (<=loaded up the old .config file if necessary) make dep bzImage modules modules_install If you're in /usr/src then the folder where you're new kernel is you can type cp arch/i386/boot/bzImage /boot/vmlunix-2.6.0-test1 then type cp System.map /boot/System.map-2.6.0-test1 Then depending on bootloader edit the bootloader .conf file and add the new kernel and run the bootloader in the shell to update it. I wouldn't delete any kernel especially as it's a test one, just choose the one you want to run at boot time. That's how I would do it anyway and have done for a while and it works amazingly ,any probs just ask. Viggel |
Baraba wrote: |
Can anybody tell me something about shell scripts? |
Baraba wrote: |
Can I compile c++ codes in VI editor? |
Baraba wrote: |
You never heard for gcc C compiler and gdb C debuger in LINUX?
Pffff |
output generated using printer-friendly topic mod, All times are GMT + 2 Hours