• <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 閱讀(2603) 評論(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 戴爾電腦
            上島咖啡多少積分
            久久香蕉超碰97国产精品| 久久亚洲天堂| 久久久久四虎国产精品| 亚洲国产成人久久综合一| 国产精品午夜久久| 中文字幕乱码久久午夜| 国产V亚洲V天堂无码久久久| 国产高清国内精品福利99久久| 久久久人妻精品无码一区| 色欲综合久久中文字幕网| 国产精品xxxx国产喷水亚洲国产精品无码久久一区 | 欧美精品丝袜久久久中文字幕 | 久久天天躁夜夜躁狠狠躁2022| 久久精品午夜一区二区福利| 精品国产一区二区三区久久蜜臀| 亚洲午夜久久久影院伊人| 久久精品无码一区二区日韩AV| 少妇精品久久久一区二区三区 | 伊人久久综在合线亚洲2019| 久久久久久久久波多野高潮| 久久99精品免费一区二区| 久久97精品久久久久久久不卡| 久久99热这里只有精品66| 内射无码专区久久亚洲| 国产精品丝袜久久久久久不卡| 狠狠狠色丁香婷婷综合久久俺| 久久国产色av免费看| 一本久道久久综合狠狠躁AV| 国产91久久综合| 99久久精品国产毛片| 国产成人精品免费久久久久| 久久久久99精品成人片直播| 日韩av无码久久精品免费| 久久亚洲精品成人av无码网站| 伊人久久五月天| 久久精品免费全国观看国产| 亚洲综合久久久| 99久久国产综合精品女同图片| 久久久久亚洲AV无码观看| 色欲久久久天天天综合网精品| 亚洲中文字幕久久精品无码APP |