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

LinuxÏÂÅäÖúÍʹÓÃACE±Ê¼Ç

1.  ÏÂÔØ ACE 5.7.
´Ó http://download.dre.vanderbilt.edu/ ÏÂÔØ ACE+TAO+CIAO-5.7.tar.gz°ü¡£
2.  ½âѹ
½«Ñ¹Ëõ°ücopyµ½linuxĿ¼/data/ACEÀȻºó½âѹ, tar -zxvf ACE+TAO+CIAO-5.7.tar.gz¡£
½âѹºóµÄĿ¼ÊÇ /data/ACE_wrappers.
3.  ÅäÖÃconfig.hºÍplatform_macros.GNU¡£
¹Ù·½ÎĵµÉÏÊÇÕâôдµÄ£º
Create a configuration file, $ACE_ROOT/ace/config.h, that includes the appropriate platform/compiler-specific header configurations from the ACE source directory. For example:
#include "ace/config-linux.h"
Create a build configuration file, $ACE_ROOT/include/makeinclude/platform_macros.GNU, that contains the appropriate platform/compiler-specific Makefile configurations, e.g.,
include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
ÔÚʵ¼Ê²Ù×÷ÖÐÒ²¿ÉÒÔÖ±½Ó´´½¨Ò»¸öÈíÁ´½Ó£º
cd $ACE_ROOT/ace
ln -s config-linux.h config.h
cd $(ACE_ROOT)/include/makeinclude/
ln -s platform_linux.GNU platform_macros.GNU
3.  configure
    cd ACE_wrappers/
    mkdir build
    ../configure
    µÈ¼¸·ÖÖÓºóconfigureÍê³É¡£
4.  make
    ÔÚACE_wrappers/buildĿ¼Ï£¬ Ö´ÐÐ$make
    makeÍêÒÔºó£¬ÔÚ/data/ACE/ACE_wrappers/build/ace/.libs/Ŀ¼Ï£¬ÄÜÕÒµ½libACE.soºÍlibACE-5.7.so.
   
    makeÌرðÂý£¬ÓÈÆäÊÇACE+TAO+CIAOÔÚÒ»ÆðµÄÕâ¸ö°ü£¬makeÒªºÃ¼¸¸öСʱ¡£Èç¹ûTAOºÍCIAOÓò»×ŵĻ°£¬Ö»ÏÂÔØACEµÄ¾Í¿ÉÒÔÁË£¬¿ÉÒÔÊ¡µãʱ¼ä¡£ 
5.  install
    ÔÚACE_wrappers/buildÏÂÖ´ÐÐ#make install
    make installÖ®ºó£¬»áÔÚ/usr/local/includeÏÂÕÒµ½ºÃ¼¸¸öaceÏà¹ØµÄÎļþ¼Ð£¬ÀïÃæÓÐincludeÐèÒªµÄÍ·Îļþ¡£
    ÔÚ/usr/local/libÏÂÕÒµ½Ò»¶ÑACEÏà¹ØµÄ.soÎļþ£¬°üÀ¨libACE.soµÈµÈ¡£
   
    linuxÏÂϵͳ²éÕÒincludeÎļþµÄ˳ÐòÊÇ£¨Õâ¶ÎÊÇÍøÉÏÕª³­µÄ£©:
    /usr/include
    /usr/local/include
    /usr/lib/gcc-lib/i386-linux/2.95.2/include
    /usr/lib/gcc-lib/i386


Ïà¹ØÎĵµ£º

linux pppoe

ÊÖÍ·Óиöep9315µÄ°å£¬½ñÌìͻȻÏëÆðÅÜÒ»ÏÂadslÉÏÍø¡£ÍíÉÏ»ØÀ´¾Í¿ªÊ¼¸ã¡£
´Ó10µãµ½ÏÖÔÚ£¬ÖÕÓÚÄܹ»ÅÜÆðÀ´¡£
¸ø´ó¼Ò½è¼øһϡ£
1.±àÒëÄںˣ¬°ÑpppµÄÄÇЩѡÏîÑ¡ÉÏ¡£ (ÎÒÓÃ2.6.8.1µÄkernel£¬cirrus µÄpatch)
2.libpcap-0.9.1 Õâ¸ö°üÊÇpppdÐèÒªµÄ¡£
./configure CC=arm-linux-gcc CFLAGS=-msoft-float --target=arm-linu ......

¿í×Ö·ûÖ§³Ö£¨linux£¬MinGW£¬Qt£©


1¡£ÒªÊ¹Óÿí×Ö·ûÖ§³Ö£¬Ê¹ÓÃw¿ªÍ·µÄһϵÁж«Î÷£¬Èçwstring£¬wofstreamµÈ¡£ÔÚʹÓÃwstringµÄʱºò£¬³£Á¿×Ö·û´®Ç°ÃæÒª¼ÓÉÏL£¬ÕâÑù²ÅÄÜת»»³Éwchar_tÐ͵Ä
else if(fileName.substr(fileName.rfind(L"."))==L".prj")
2¡£Ò»¸öÎļþÁ÷£¨ÎÞÂÛÊÇofstream»¹ÊÇwofstream£©£¬Ö»Ö§³Öconst char*×÷ΪÎļþÃû£¬¶ÔÓÚ¿í×Ö·ûµÄwstringµÄÎļþÃû ......

linux ÖÐÎÄÏÔʾÂÒÂë½â¾ö°ì·¨


linux ÖÐÎÄÏÔʾÂÒÂë½â¾ö°ì·¨
vi /etc/sysconfig/i18n
½«ÄÚÈݸÄΪ
LANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="lat0-sun16"
ÕâÑùÖÐÎÄÔÚSSH,telnetÖն˾ͿÉÒÔÕý³£ÏÔʾ
......

LINUX SOCKET AIO ÎÊÌâ

дÁË´úÂ룬ʹÓÃace_proactor, Ô­À´windowsÅܵ÷dz£Æ¯ÁÁ£¬À´µ½linux¾Íʱ²»Ê±²»¹¤×÷£¬È»ºó¼Óasynce_connectorºó£¬·¢ÏÖÍê³É²»Äܹ¤×÷£¬async_stream_writeºó£¬·¢ÏÖ¿¨ÔÚÄÇÀ¸ù±¾·¢²»³öÈ¥£¬¶à´Î·ÖÎöºó£¬·¢ÏÖ£¬Ô­À´Ö®Ç°ÓÐaio_readûÓÐÍê³É£¬aio_writeµÄÇëÇó¾ÍblockÄÇÀïÁË£¬writeÕâ¸ö²Ù×÷¾¹È»Ò»¶¨ÒªµÈÇ°µÄaio_readÍê³ÉÖ®ºó£¬²Å¿ÉÒ ......

LINUX½ø³Ì¼äͨÐÅ

                                     Linux ½ø³Ì¼äͨÐÅѧϰ
1.Linux ¼ä½ø³ÌͨÐŵķÖÀà
1.   ¹ÜµÀͨÐÅ£¨pipe£©ºÍÃü ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ