Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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±à³Ì(Áù) L2CAP±à³ÌʵÀý

ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
 Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......

LinuxÉ豸ģÐÍÖ®input×ÓϵͳÏê½â

Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......

WindowsÓëVmwareϵÄLinuxÎļþ¹²Ïí·½Ê½×ܽá

WindowsºÍLinux¼äÓкܶàÎļþ¹²ÏíµÄ·½Ê½£¬ÕâÀï×ܽáÁËһϡ£¼ÙÉèÄãµÄHost¼ÆËã»úÊÇWindows,GuestÊÇLinux¡£
1.ÓÃvmware tools¹¤¾ß
SharedFoldersÊÇVmware4 µÄÒ»¸öй¦ÄÜ£¬¸ü¼Ó·½±ãÁËÔÚHost£¬Guest²Ù×÷ϵͳ¼ä¹²ÏíÎļþ¡£µ«ÊÇʹÓÃÇ°
Òª°²×°vmware tools.
µã»÷setting->vmware tools install
mount /dev/cdrom /mnt/cdr ......

linux ifÓï¾äÄÚÅжϲÎÊý

shell ±à³ÌÖÐʹÓõ½µÃifÓï¾äÄÚÅжϲÎÊý
–b µ±file´æÔÚ²¢ÇÒÊÇ¿éÎļþʱ·µ»ØÕæ
-c µ±file´æÔÚ²¢ÇÒÊÇ×Ö·ûÎļþʱ·µ»ØÕæ
-d µ±pathname´æÔÚ²¢ÇÒÊÇÒ»¸öĿ¼ʱ·µ»ØÕæ
-e µ±pathnameÖ¸¶¨µÄÎļþ»òĿ¼´æÔÚʱ·µ»ØÕæ
-f µ±file´æÔÚ²¢ÇÒÊÇÕý¹æÎļþʱ·µ»ØÕæ
-g µ±ÓÉpathnameÖ¸¶¨µÄÎļþ»òĿ¼´æÔÚ²¢ÇÒÉèÖÃÁËSGIDλʱ·µ»ØÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ