Linux C ¿ª·¢»·¾³(debian)
#apt-get install gcc (±àÒëÆ÷)
#apt-get install gdb (µ÷ÊÔ)
#apt-get install libc6-dev (¿ª·¢¿â)
Èç¹ûûÓпª·¢¿â£¬gccµÄʱºò¾Í»á´íÎó
gcc h.c
h.c: In function ‘main’:
h.c:1: warning: incompatible implicit declaration of built-in function ‘printf ’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
°²×°ºó¾ÍûÓÐÎÊÌâÁË£º
gcc h.c
h.c: In function ‘main’:
h.c:1: warning: incompatible implicit declaration of built-in function ‘printf
gcc -o hello hello.c
hello.c: In function ‘main’:
hello.c:2: warning: incompatible implicit declaration of built-in function ‘printf’
james@debian:~$ ls
a.out h.c hello hello.c
james@debian:~$ ./hello
Hello Linux
james@debian:~$
Ïà¹ØÎĵµ£º
I/O ¶Ë¿ÚºÍ I/O ÄÚ´æ
ÿÖÖÍâÉè¶¼ÊÇͨ¹ý¶Áд¼Ä´æÆ÷À´½øÐпØÖÆ¡£
ÔÚÓ²¼þ²ã£¬ÄÚ´æÇøºÍ I/O ÇøÓòûÓиÅÄîÉϵÄÇø±ð: ËüÃǶ¼ÊÇͨ¹ýÏòÔÚµØÖ·×ÜÏߺͿØÖÆ×ÜÏß·¢³öµçƽÐźÅÀ´½øÐзÃÎÊ£¬ÔÙͨ¹ýÊý¾Ý×ÜÏß¶ÁдÊý¾Ý¡£
ÒòΪÍâÉèÒªÓëI\O×ÜÏ߯¥Å䣬¶ø´ó²¿·ÖÁ÷ÐÐµÄ I/O ×ÜÏßÊÇ»ùÓÚ¸öÈ˼ÆËã»úÄ£ÐÍ£¨Ö÷ÒªÊÇ x86 ¼Ò×壺ËüΪ¶ÁºÍд I/O ¶Ë¿ÚÌá¹ ......
¡¡¡¡ÔÚLinuxÕóÓªÀºóÆðÖ®ÐãUbuntu Linuxµ±ÊôÆäÖеÄٮٮÕß¡£ÔÚUbuntu LinuxÖÐȱʡ°²×°µÄÓ¦ÓóÌÐòÖ÷Òª°üÀ¨ÁË×ÀÃæ»·¾³GNOME¡¢»æÍ¼³ÌÐòGIMP¡¢¼´Ê±Í¨Ñ¶¹¤¾ßPidgin¡¢°ì¹«Ì×¼þOpenOffice.org¡¢Ã½Ìå²¥·ÅÆ÷Totem¡¢ÒôÀÖ²¥·ÅÆ÷RhythmboxÒÔ¼°ÍøÒ³ä¯ÀÀÆ÷FirefoxµÈ¡£ÒªÖ´ÐÐÊÓÆµ±à¼¡¢BTÏÂÔØºÍ3DͼÐÎÉè¼ÆµÈÈÎÎñÍùÍùÐèÒª½èÖúÓÚµÚÈý·½Èí¼ ......
1¡¢Ïȱ¸·ÝºÃ:
¡¡¡¡sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
¡¡¡¡2¡¢´ò¿ªxorg.conf:
¡¡¡¡sudo gedit /etc/X11/xorg.conf
¡¡¡¡3¡¢ÇëÕÒµ½ÒÔÏÂÒ»¶ÎÔÚÕâ¸Ä£º
¡¡¡¡Section "Monitor"
¡¡¡¡Identifier "Generic Monitor"
¡¡¡¡Option "DPMS"
¡¡¡¡HorizSync 28-70
¡¡¡¡VertRefr ......
Linux
ÖÐÓÃ
rdate
ʵÏÖʱ¼ä×Ô¶¯Í¬²½
ÔÎĵØÖ·£ºhttp://liuxh6.itpub.net/post/528/451628
ÔÚ¸÷ÖÖ
linux
Öж¼ÓÐ
rdate
ÃüÁֻÊÇÒ»°ãºÜÉÙÓÐÈË ......