• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            Creative Commons License
            本Blog采用 知識共享署名-非商業性使用-禁止演繹 3.0 Unported許可協議 進行許可。 —— Fox <游戲人生>

            游戲人生

            游戲人生 != ( 人生 == 游戲 )
            站點遷移至:http://www.yulefox.com。請訂閱本博的朋友將RSS修改為http://feeds.feedburner.com/yulefox
            posts - 62, comments - 508, trackbacks - 0, articles - 7

            ACE在cygwin下的使用

            Posted on 2009-08-19 10:05 Fox 閱讀(2612) 評論(4)  編輯 收藏 引用 所屬分類: T技術碎語

            本文同步自游戲人生

            /*--------- Hello.cc ---------*/

            /** Hello.cc:
            * @File:   Hello.cc
            * @Author: Fox <yulefox at gmail dot com>
            * @Date:   Aug. 19th, 2009
            * @Brief:  Test ACE log module application
            */

            #define ACE_NTRACE 0            /// trace the calling position

            #include "ace/Log_Msg.h"        /// include log module

            int ACE_TMAIN(int, ACE_TCHAR *[])
            {
                 ACE_TRACE(ACE_TEXT("main"));

                 ACE_DEBUG((LM_INFO, ACE_TEXT("%IStart\n")));
                 ACE_DEBUG((LM_INFO, ACE_TEXT("%IEnd\n")));

                 return 0;
            }

            /*--------- makefile ---------*/

            BIN     = hello                       # src & exe file name
            SRC     = $(addsuffix .cc, $(BIN))    # src file suffix
            LIBS    = -lACE                       # libACE.dll under cygwin

            include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
            include $(ACE_ROOT)/include/makeinclude/macros.GNU
            include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
            include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
            include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU
            include $(ACE_ROOT)/include/makeinclude/rules.local.GNU

            /*--------- Compilation ---------*/

            GNUmakefile: /home/fox/ace/GNUmakefile MAKEFLAGS=k

            g++ -Wpointer-arith -mthreads -mtune=pentiumpro -O3 -g -pipe    -pipe   -I/usr/\
            share/ace -DACE_HAS_EXCEPTIONS -DACE_NO_INLINE  -c -o .obj/hello.o hello.cc
            g++ -Wpointer-arith -mthreads -mtune=pentiumpro -O3 -g -pipe    -pipe   -I/usr/\
            share/ace -DACE_HAS_EXCEPTIONS -DACE_NO_INLINE  -Wl,--enable-auto-import -Wl,-E\
            -L/usr/share/ace/lib -o hello .obj/hello.o  -lACE

            Compilation finished at Wed Aug 19 00:35:42

            /*--------- Result ---------*/

            $ ./hello.exe
            (14417928) calling main in file `hello.cc' on line 13
                Start
                End
            (14417928) leaving main

            -------------------------------------------------------

            更多內容請參考C++NP(C++ Network Programming) vol.1 & vol.2和APG(The ACE Progrmmer's Guide)

            忙活了一晚上,終于知道怎么包含頭文件了,在gcc的編譯選項中用 -I或/I$(ACE_ROOT):

            本例中是:-I/usr/share/ace

            結果后面庫又鏈接不上,聯想以前使用OpenGL庫的LIBS,終于靠一個-lACE搞定。

            因為不愿意用MPC,總感覺再多花些時間去弄又只是離題更遠了,有興趣的同學自然是可以通過ACE的官網找到所有問題的答案。

            這樣一來,ACE在cygwin下從安裝到使用也就告一段落了,后面的問題就比較easy了,無非是你用ACE做什么。而我也不會再就ACE && cygwin寫什么心得了,總算見證了這兩天的搗騰。

            Feedback

            # re: ACE在cygwin下的使用  回復  更多評論   

            2009-08-19 10:56 by 凡客誠品
            不錯啊

            # re: ACE在cygwin下的使用  回復  更多評論   

            2009-08-19 14:33 by 戴爾電腦
            愛仕達撒嬌的

            # re: ACE在cygwin下的使用  回復  更多評論   

            2009-08-21 17:23 by 戴爾電腦
            上島咖啡多少積分
            国产午夜久久影院| 伊人 久久 精品| 四虎国产永久免费久久| 久久99精品久久久久久秒播| 国内精品久久久久久中文字幕| 欧美成人免费观看久久| 久久久久亚洲AV无码麻豆| AA级片免费看视频久久| 亚洲成av人片不卡无码久久| 亚洲va国产va天堂va久久| 91精品国产色综久久| 久久久久亚洲av综合波多野结衣| 久久精品人人做人人爽电影蜜月| 久久久久久国产a免费观看不卡| 99久久99久久精品国产片果冻| 91亚洲国产成人久久精品网址| 亚洲精品无码久久千人斩| 国产精品热久久毛片| 久久精品国产第一区二区三区| 青青草国产97免久久费观看| 久久精品国产精品青草| 久久综合香蕉国产蜜臀AV| 亚洲乱码日产精品a级毛片久久 | 成人亚洲欧美久久久久| 亚洲av伊人久久综合密臀性色| 久久高清一级毛片| 精品久久久久久无码免费| 久久亚洲国产欧洲精品一| 久久精品人人做人人爽97| 亚洲愉拍99热成人精品热久久 | 久久久久久午夜成人影院| 日本加勒比久久精品| 久久人人爽人爽人人爽av| 久久九九久精品国产| 久久激情亚洲精品无码?V| 国产999精品久久久久久| 伊人色综合久久| 久久国产影院| 思思久久精品在热线热| 亚洲精品国精品久久99热| 2021国内精品久久久久久影院|