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:~$
Ïà¹ØÎĵµ£º
¢Ùmallocº¯Êý
ÔÐÍ£ºextern void *malloc(unsigned int num_bytes);
Í·Îļþ£º#include <alloc.h>
¹¦ÄÜ£º·ÖÅ䳤¶ÈΪnum_bytes×Ö½ÚµÄÄÚ´æ¿é¡£
˵Ã÷£ºÈç¹û·ÖÅä³É¹¦Ôò·µ»ØÖ¸Ïò±»·ÖÅäÄÚ´æµÄÖ¸Õ룬·ñÔò·µ»Ø¿ÕÖ¸ÕëNULL¡£µ±ÄÚ´æ²»ÔÙʹÓÃʱ£¬Ó¦Ê¹ÓÃfree()º¯Êý½«ÄÚ´æ¿éÊÍ·Å¡£
¾ÙÀý£º
#inclu ......
ACE¿âÖÐרÃŶÔÏß³Ìͬ²½ÌṩÁËÁ½¸öÀ࣬һ¸öÊÇACE_Thread_MutexÁíÒ»¸öÊÇACE_REcursive_Thread_Mutex¡£ ÔÚÎÒ¿´ À´£¬ÔÚlinuxϽøÐÐÏß³Ìͬ²½£¬²»ÒªÊ¹ÓÃACE_Thread_Mutex£¬ÓÃACE_REcursive_Thread_Mutex¾Í¿ÉÒÔÁË¡£ÔÒòºÜ ¼òµ¥£¬ÒòΪACE_Thread_Mutex²»Ö§³ÖÏß³ÌÖØÈë¡£Ò»µ©ÖØÈë(ͬһ¸öÏ̵߳÷ÓÃÁ½´ÎACE_Thread_Mutex: ......
I/O ¶Ë¿ÚºÍ I/O ÄÚ´æ
ÿÖÖÍâÉè¶¼ÊÇͨ¹ý¶Áд¼Ä´æÆ÷À´½øÐпØÖÆ¡£
ÔÚÓ²¼þ²ã£¬ÄÚ´æÇøºÍ I/O ÇøÓòûÓиÅÄîÉϵÄÇø±ð: ËüÃǶ¼ÊÇͨ¹ýÏòÔÚµØÖ·×ÜÏߺͿØÖÆ×ÜÏß·¢³öµçƽÐźÅÀ´½øÐзÃÎÊ£¬ÔÙͨ¹ýÊý¾Ý×ÜÏß¶ÁдÊý¾Ý¡£
ÒòΪÍâÉèÒªÓëI\O×ÜÏ߯¥Å䣬¶ø´ó²¿·ÖÁ÷ÐÐµÄ I/O ×ÜÏßÊÇ»ùÓÚ¸öÈ˼ÆËã»úÄ£ÐÍ£¨Ö÷ÒªÊÇ x86 ¼Ò×壺ËüΪ¶ÁºÍд I/O ¶Ë¿ÚÌá¹ ......
Some humorous things to do to a UNIX system:
from the csh (c shell):
% make love
Make: Don't know how to make love. Stop.
% got a light?
No match.
% sleep with me
bad character
% man: Why did you get a divorce?
man:: Too many arguments.
% rm God
rm: ......
Linuxƽ̨ÏÂEclipseµÄ°²×°(2007-06-26 09:50:22)
·ÖÀࣺËûɽ֮ʯ
Linuxƽ̨ÏÂEclipseµÄ°²×°
Linuxƽ̨ÏÂEclipseµÄ°²×°2007Äê06ÔÂ15ÈÕ ÐÇÆÚÎå ÉÏÎç 10:04Linuxƽ̨ÏÂEclipseµÄ°²×°
ÏÂÃæÒÔRedhat 4.0ΪÀý¼òµ¥µÄ½éÉÜÒ»ÏÂEclipseµÄ°²×°£º
Ò».ÏÂÔØËùÐèÈí¼þ
1 ÏÂÔØ Eclipse£¬Í ......