Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux gccÓ÷¨¼°²ÎÊý˵Ã÷

 1¡¢linux gcc°üº¬µÄc/c++±àÒëÆ÷
¡¡¡¡gcc¡¢cc¡¢c++¡¢g++£º
¡¡¡¡gccºÍccÊÇÒ»ÑùµÄ£¬c++ºÍg++ÊÇÒ»ÑùµÄ£¬Ò»°ãc³ÌÐò¾ÍÓÃgcc±àÒ룬c++³ÌÐò¾ÍÓÃg++±àÒë
2¡¢linux gccµÄ»ù±¾Ó÷¨
¡¡¡¡gcc test.cÕâÑù½«±àÒë³öÒ»¸öÃûΪa.outµÄ³ÌÐògcc test.c -o testÕâÑù½«±àÒë³öÒ»¸öÃûΪtestµÄ³ÌÐò
¡¡¡¡-o²ÎÊýÓÃÀ´Ö¸¶¨Éú³É³ÌÐòµÄÃû×Ö
3¡¢ÎªÊ²Ã´»á³öÏÖundefined reference to 'xxxxx'´íÎó£¿
¡¡¡¡Ê×ÏÈÕâÊÇÁ´½Ó´íÎ󣬲»ÊDZàÒë´íÎó£¬Ò²¾ÍÊÇ˵Èç¹ûÖ»ÓÐÕâ¸ö´íÎó£¬ËµÃ÷ÄãµÄ³ÌÐòÔ´Âë±¾ÉíûÓÐÎÊÌ⣬ÊÇÄãÓñàÒëÆ÷±àÒëʱ²ÎÊýÓõò»¶Ô£¬ÄãûÓÐÖ¸¶¨Á´½Ó³ÌÐòÒªÓõ½µÃ¿â£¬±ÈÈçÄãµÄ³ÌÐòÀïÓõ½ÁËһЩÊýѧº¯Êý£¬ÄÇôÄã¾ÍÒªÔÚ±àÒë²ÎÊýÀïÖ¸¶¨³ÌÐòÒªÁ´½ÓÊýѧ¿â£¬·½·¨ÊÇÔÚ±àÒëÃüÁîÐÐÀï¼ÓÈë-lm   #P#
4¡¢l²ÎÊýºÍL²ÎÊý
¡¡¡¡-l²ÎÊý¾ÍÊÇÓÃÀ´Ö¸¶¨³ÌÐòÒªÁ´½ÓµÄ¿â£¬-l²ÎÊý½ô½ÓמÍÊÇ¿âÃû£¬ÄÇô¿âÃû¸úÕæÕýµÄ¿âÎļþÃûÓÐʲô¹ØϵÄØ£¿¾ÍÄÃÊýѧ¿âÀ´Ëµ£¬ËûµÄ¿âÃûÊÇm£¬ËûµÄ¿âÎļþÃûÊÇlibm.so£¬ºÜÈÝÒ׿´³ö£¬°Ñ¿âÎļþÃûµÄÍ·libºÍβ.soÈ¥µô¾ÍÊÇ¿âÃûÁË£¬ºÃÁËÏÖÔÚÎÒÃÇÖªµÀÔõôµÃµ½¿âÃû£¬µ±ÎÒÃÇ×ÔÒÑÒªÓõ½Ò»¸öµÚÈý·½ÌṩµÄ¿âÃû×Ölibtest.so£¬ÄÇôÎÒÃÇÖ»Òª°Ñlibtest.so¿½±´µ½/usr/libÀ±àÒëʱ¼ÓÉÏ-ltest²ÎÊý£¬ÎÒÃǾÍÄÜÓÃÉÏlibtest.so¿âÁË£¨µ±È»ÒªÓÃlibtest.so¿âÀïµÄº¯Êý£¬ÎÒÃÇ»¹ÐèÒªÓëlibtest.soÅäÌ×µÄÍ·Îļþ£©·ÅÔÚ/libºÍ/usr/libºÍ/usr/local/libÀïµÄ¿âÖ±½ÓÓÃ-l²ÎÊý¾ÍÄÜÁ´½ÓÁË£¬µ«Èç¹û¿âÎļþû·ÅÔÚÕâÈý¸öĿ¼À¶øÊÇ·ÅÔÚÆäËûĿ¼ÀÕâʱÎÒÃÇÖ»ÓÃ-l²ÎÊýµÄ»°£¬Á´½Ó»¹ÊÇ»á³ö´í£¬³ö´íÐÅÏ¢´ó¸ÅÊÇ£º“/usr/bin/ld: cannot find -lxxx”£¬Ò²¾ÍÊÇÁ´½Ó³ÌÐòldÔÚÄÇ3¸öĿ¼ÀïÕÒ²»µ½libxxx.so£¬ÕâʱÁíÍâÒ»¸ö²ÎÊý-L¾ÍÅÉÉÏÓó¡ÁË£¬±ÈÈç³£ÓõÄX11µÄ¿â£¬ËüÔÚ/usr/X11R6/libĿ¼Ï£¬ÎÒÃDZàÒëʱ¾ÍÒªÓÃ-L/usr/X11R6/lib -lX11²ÎÊý£¬-L²ÎÊý¸ú×ŵÄÊÇ¿âÎļþËùÔÚµÄĿ¼Ãû¡£ÔÙ±ÈÈçÎÒÃÇ°Ñlibtest.so·ÅÔÚ/aaa/bbb/cccĿ¼Ï£¬ÄÇÁ´½Ó²ÎÊý¾ÍÊÇ-L/aaa/bbb/ccc -ltest¡£
¡¡¡¡ÁíÍ⣬´ó²¿·Ölibxxxx.soÖ»ÊÇÒ»¸öÁ´½Ó£¬ÒÔRH9ΪÀý£¬±ÈÈçlibm.soËüÁ´½Óµ½/lib/libm.s o.x£¬/lib/libm.so.6ÓÖÁ´½Óµ½/lib/libm-2.3.2.so£¬Èç¹ûûÓÐÕâÑùµÄÁ´½Ó£¬»¹ÊÇ»á³ö´í£¬ÒòΪldÖ»»áÕÒlibxxxx.so£¬ËùÒÔÈç¹ûÄãÒªÓõ½xxxx¿â£¬¶øÖ»ÓÐlibxxxx.so.x»òÕßlibxxxx-x.x.x.so£¬×öÒ»¸öÁ´½Ó¾Í¿ÉÒÔÁËln -s libxxxx-x.x.x.so libxxxx.soÊÖ¹¤À´Ð´Á´½Ó²ÎÊý×ÜÊǺÜÂé·³µÄ£¬»¹ºÃºÜ¶à¿â¿ª·¢°üÌṩÁËÉú³ÉÁ´½Ó²ÎÊýµÄ³ÌÐò£¬Ãû×ÖÒ»°ã½Ðxxxx-config£¬Ò»°ã·ÅÔÚ/usr/binÄ¿


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

linux³£ÓÃÃüÁî´óÈ«

linux³£ÓÃÃüÁî´óÈ«
Linux ÈëÃų£ÓÃÃüÁî
1.      Linux½øÈëÓëÍ˳öϵͳ
1.1½øÈëLinuxϵͳ£º
±ØÐëÒªÊäÈëÓû§µÄÕ˺ţ¬ÔÚϵͳ°²×°¹ý³ÌÖпÉÒÔ´´½¨ÒÔÏÂÁ½ÖÖÕʺţº
¡¡¡¡1£®root--³¬¼¶Óû§Õʺţ¨ÏµÍ³¹ÜÀíÔ±£©£¬Ê¹ÓÃÕâ¸öÕʺſÉÒÔÔÚϵͳÖÐ×öÈκÎÊÂÇé¡£
¡¡¡¡2£®ÆÕͨÓû§--Õâ¸öÕʺŹ©ÆÕͨÓû§Ê¹Ó㬿ÉÒÔ ......

VM+linuxÍøÂçÉèÖÃ


VM-Linux-ÈçºÎÅäÖÃÍøÂç(2009-07-26 03:01:29)
±êÇ©£ºvm ÅäÖÃÍøÂç linux it 
·ÖÀࣺIT
ÅäÖÃÐéÄâ»úµÄÍøÂç
¡¡¡¡¹âÓÐÐéÄâ»úÊDz»¹»µÄ£¬ÎÒÃÇÐèҪʹÓÃÐéÄâ»úºÍÕæʵÖ÷»úÒÔ¼°ÆäËûµÄÐéÄâ»ú½øÐÐͨѶ¡£Í¨Ñ¶·ÖÁ½¸ö²¿·Ö£¬Ò»¸öÊǾÖÓòÍøÄڵģ¬ÁíÒ»¸öÊÇÁ¬½Óµ½¹«ÍøµÄ¡£ÕâÒ»²¿·ÖÊÇÖص㣬ÈýÖÖ²»Í¬Ä£Ê½µÄÓÃ;¾ÍÒª½ÒÏþ ......

linux+ngnix+php °²×°ÅäÖÃ

 Èí¼þÏÂÔصØÖ·£º
pcre£ºhttp://www.pcre.org/ 
Nginx£ºhttp://nginx.net/
spawn-fcig: http://redmine.lighttpd.net/projects/spawn-fcgi/news
ÀûÓà wget ÃüÁîÏÂÔØÏàÓ¦µÄ °²×°°ü
²½Öè
1¡¢°²×°pcre
     ngnix ÐèÒª°²×°pcre¿â£º
    wget http://sourceforge.net ......

LinuxÖеŤ×÷¶ÓÁÐ(work queue)

¹¤×÷¶ÓÁÐ(work queue)ÊÇLinux kernelÖн«¹¤×÷ÍƺóÖ´ÐеÄÒ»ÖÖ»úÖÆ¡£ÕâÖÖ»úÖƺÍBH(bottom half)»òTasklets²»Í¬Ö®´¦ÔÚÓÚ¹¤×÷¶ÓÁÐÊÇ°ÑÍƺóµÄ¹¤×÷½»ÓÉÒ»¸öÄÚºËÏß³ÌÈ¥Ö´ÐУ¬Òò´Ë¹¤×÷¶ÓÁеÄÓÅÊƾÍÔÚÓÚËüÔÊÐíÖØе÷¶ÈÉõÖÁ˯Ãß¡£
linux 2.6.20ÒԺ󣬹¤×÷¶ÓÁлúÖƺÍ֮ǰµÄ°æ±¾ÓÐÒ»µã²»Í¬£¬ÔÚÍøÉÏÕÒÁËÒ»µã×ÊÁÏ£¬Ò²ÏàÓ¦µÄ¿´ÁËһЩcode£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ