• <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采用 知識共享署名-非商業(yè)性使用-禁止演繹 3.0 Unported許可協(xié)議 進行許可。 —— 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 閱讀(2602) 評論(4)  編輯 收藏 引用 所屬分類: T技術(shù)碎語

            本文同步自游戲人生

            /*--------- 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

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

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

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

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

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

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

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

            Feedback

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

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

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

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

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

            2009-08-21 17:23 by 戴爾電腦
            上島咖啡多少積分
            国产精品一区二区久久| 午夜精品久久久久久影视riav| 久久亚洲sm情趣捆绑调教| 久久久久高潮综合影院| 国产成人久久AV免费| 久久精品国产99国产精品| 伊人久久大香线蕉综合Av| 91精品国产综合久久四虎久久无码一级| 久久se精品一区精品二区国产| 中文字幕日本人妻久久久免费| 久久福利青草精品资源站免费| 人妻无码αv中文字幕久久琪琪布| 999久久久免费精品国产| 伊人热热久久原色播放www| 久久99国产精品久久99| 久久久久久精品免费免费自慰 | 久久久精品午夜免费不卡| 久久精品无码av| 久久777国产线看观看精品| 久久人人爽人人爽人人爽| 亚洲狠狠综合久久| 国产精品无码久久综合| 尹人香蕉久久99天天拍| 久久精品亚洲欧美日韩久久| 97久久精品午夜一区二区| 国产毛片欧美毛片久久久| 日本亚洲色大成网站WWW久久| 99久久精品国产一区二区三区| 久久99精品国产自在现线小黄鸭 | www.久久99| 久久精品人人槡人妻人人玩AV | 久久久老熟女一区二区三区| 久久亚洲精品无码VA大香大香| 久久强奷乱码老熟女| 久久国产影院| 久久久久亚洲AV成人网| 国产亚洲色婷婷久久99精品91| 欧美一级久久久久久久大| 久久婷婷色香五月综合激情| 久久人人青草97香蕉| 亚洲中文字幕无码一久久区|