ǶÈëʽLinux±àÒëÆ÷gccʹÓÃ
At first, GCC is used for GNU C Compiler. At present£¬it supports JAVA Ada C++ and so on.
GCC±àÒëÁ÷³Ì·ÖΪ£º
1.Pre-Processing£¨Ô¤´¦Àí£©
gcc -E -o hello.i hello.c
Ñ¡Ïî-E ʹµÃ±àÒëÆ÷ÔÚÔ¤´¦Àí½áÊøʱֹͣ±àÒë
Ñ¡Ïî-o Ö¸¶¨GCCµÄÊä³ö½á¹û
.i/.ii ¾¹ýÔ¤´¦ÀíµÄC/C++Ô´³ÌÐò
2.Compiling£¨±àÒ룩
gcc -S -o hello.s hello.i
Ñ¡Ïî-S ʹµÃ±àÒëÆ÷ÔÚ±àÒë½áÊø£¬½øÐлã±à֮ǰֹͣ±àÒë
.s »ã±àÓïÑÔÔ´³ÌÐò
3.Assembling (»ã±à)
gcc -c hello.s hello.o
Ñ¡Ïî-c »ã±à½×¶Î½«»ã±à´úÂëתΪ¶þ½øÖÆÄ¿±ê´úÂë
4.Linking£¨Á´½Ó£©
gcc hello.o -o hello
½«³ÌÐòÖÐÓõ½µÄ¿âº¯ÊýÈçprintfµÄʵÏÖ´ÓĬÈϵÄ·¾¶"/usr/lib/libc.so.6"Á´½Ó¹ýÀ´
ÏÖÔÚ¼´¿ÉÔËÐпÉÖ´ÐÐÎļþhello
GCC¾¯¸æÌáʾ£º
1.WallÀྯ¸æÌáʾ
Õ¼GCC¾¯¸æÑ¡Ïî90%ÒÔÉÏ£¬½¨ÒéʹÓÃÑ¡Ïî-Wall£¬¼´´ò¿ªËùÓо¯¸æ£º
gcc -Wall wrong.c -o wrong
2.·ÇWallÀྯ¸æÌáʾ
"-ansi" Ç¿ÖÆGCCÉú³ÉµÄ±ê×¼Óï·¨ËùÒªÇóµÄ¸æ¾¯ÐÅÏ¢£¬²¢²»±£Ö¤ËùÓÐûÓо¯¸æµÄ³ÌÐò¶¼ÊÇ·ûºÏANSI C±ê×¼
”-pedantic“ ÔÊÐí·¢³öANSI C±ê×¼ËùÁеÄÈ«²¿¾¯¸æÐÅÏ¢£¬±£Ö¤ËùÓÐûÓо¯¸æµÄ³ÌÐò¶¼ÊÇ·ûºÏANSI C±ê×¼
gcc -pedantic wrong.c -o wrong
GCCʹÓÿ⺯Êý
LinuxÖÐÓÐ3Öֿ⺯ÊýÐÎʽ£º
1.¾²Ì¬ ºó׺Ϊ.a
¾²Ì¬¿âµÄ´úÂëÔÚ±àÒëʱ¾ÍÒѾÁ¬½Óµ½Ó¦ÓóÌÐòÖÐ
2.¹²Ïí ºó׺Ϊ.soºÍ°æ±¾ºÅ
ÔÚ³ÌÐò¿ªÊ¼ÔËÐÐʱ²ÅÔØÈë
3.¶¯Ì¬ ºó׺Ϊ.soºÍ°æ±¾ºÅ
ÔÚ³ÌÐòÖеÄÓï¾äÐèҪʹÓøú¯Êýʱ²Åµ÷Ó㬵÷ÓýáÊøºóÊͷŶ¯Ì¬¿âËùÕ¼ÄÚ´æ
¶¯Ì¬¿âºÍ¹²Ïí¿âÖ»°üº¬¶Ô¿âº¯ÊýµÄÒýÓ㬴úÂë¹æÄ£½ÏС
LinuxϵͳËùÓõĿⶼ·ÅÔÚ /usr/lib ºÍ /lib Ŀ¼ÏÂ
¿âÎļþµÄ·¾¶Í¨³£²»ÔÚϵͳĬÈÏ·¾¶Ï£¬ÔòÐèҪʹÓõ÷Ó÷¾¶Ñ¡ÏîÀ´Ö¸¶¨Ïà¹Ø¿âÎļþµÄλÖÃ
1. ” -I dir &
Ïà¹ØÎĵµ£º
LinuxÒª°²×°mssqlÀ©Õ¹£¬±ØÐëÊ×ÏÈ°²×°freetds£¬°²×°¹ý³ÌÈçÏ£º
1¡¢¼ÙÉèÔ´ÎļþĿ¼Ϊ/webServ£¬°²×°Ä¿Â¼Îª/opt/freetds¡£
1) >cd /webServ
2) ÏÂÔØ£¬ >wget ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz
3) ½âѹ£¬ >tar -zxvf freetds-stable.tgz
4) ½øÈ룬 >cd freetds-0¡£ ......
¼ÙÉèphp°²×°ÔÚ/usr/local/php5/bin/php£¬³õʼÔÚÃüÁîÐÐÖ´ÐÐPHPµÄʱºòÒªÊäÈëÒ»³¤´®µÄ·¾¶£¬eg£º
$>/usr/local/php5/bin/php phpinfo.php
·Ç³£µÄÂé·³£¬ÏÖÔÚÖ»Ð轫php¿½±´ÖÁusr/sbinĿ¼¼´¿ÉÖ±½ÓʹÓÃphpÃüÁeg£º
$>cp /usr/local/php5/bin/php /usr/sbin/
$>php phpinfo.php
......
ÔÚÎÒÃÇÔÚд³ÌÐòµÄ¹ý³ÌÖÐ,ÓÐЩʱºòÐèÒªÖªµÀһЩµçÄÔµÄÓ²¼þÐÅÏ¢,±ÈÈçÎÒÃÇдһЩÐèҪע²áµÄ³ÌÐòµÄʱºò,¾ÍÐèÒªµÃµ½Ä³¸öµçÄÔÌض¨µÄÐÅÏ¢,Ò»°ãÀ´Ëµ,Íø¿¨µÄÎïÀíµØÖ·ÊDz»»áÖظ´µÄ,ÎÒÃÇÕýºÃ¿ÉÒÔÓÃËüÀ´×öΪÎÒÃÇʶ±ðһ̨µçÄԵıêÖ¾.ÄÇÈçºÎµÃµ½Íø¿¨µÄÎïÀíµØÖ·ÄØ?ÎÒÃÇ¿ÉÒÔ½èÖúÓÚProcessBuilderÕâ¸öÀà,Õâ¸öÀàÊÇJDK1.5мӵÄ,ÒÔÇ°Ò²¿ÉÒÔÓÃRu ......
·¢²¼Ê±¼ä£º2007.07.30 06:16
À´Ô´£ºÈüµÏÍø
×÷Õߣºsixth
ºÍËùÓеÄÁ÷ÐÐÎı¾±à¼Æ÷Ò»
Ñù£¬Vim ¿ÉÒԺܺõı༸÷ÖÖ×Ö·û±àÂëµÄÎļþ£¬Õ⵱Ȼ°üÀ¨UCS-2¡¢UTF-8 µÈÁ÷ÐÐµÄ Unicode ±àÂ뷽ʽ¡£È»¶ø²»ÐÒµÄÊÇ£¬ºÍºÜ¶àÀ´×Ô
Linux ÊÀ½çµÄÈí¼þÒ»Ñù£¬ÕâÐèÒªÄã×Ô¼º¶¯ÊÖÉèÖ ......
LinuxmineÊÕ¼¯ÕûÀí ×÷Õߣºlinux±¦¿â (http://www.linuxmine.com) 1. ²»Òªµ±¡°´«½ÌÊ¿¡±
ºÜ¶àÈËÔÚÌÖÂÛÇø²»¶ÏµÄÒýÆð "Linux vs. Windows" Ö®ÀàµÄÌÖÂÛ£¬ÉõÖÁÕùµÄÃæºì¶ú³à£¬ÕâÊÇûÓбØÒªµÄ¡£
ÕâÖÖÕùÂÛÊÇÀË·Ñʱ¼ä¶øûÓÐÈκÎÓô¦µÄ¡£¶Ô£¬Ä㻨ÁËÒ»ÏÂÎ磬ÓÃÐí¶àÊÂʵ¡°º´ÎÀ¡±ÁË ¡°Linux ±È Windows ºÃ¡± Õâ¸ö˵·¨¡£µ«ÊÇ Win ......