青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

EverSpring working shop

To pursue creative ideas based on nature.

統(tǒng)計(jì)

留言簿(1)

他山之石

閱讀排行榜

評(píng)論排行榜

How to Compile/Test Loki source code in Linux

Previously, I review and test the source code of the Loki under the windows XP by the visual C++ express. It is easy to compile and test the Loki code in windows. Just download the zip file or the .exe file from the sourceforge website. The directory contains the Visual C++ project file, which can read the makefile automatically and compile the code in the test directory very easily. However, you may not know the dependency between the src files in this project because they are hidden in the makefile and the src code themselves.
?
Today, I update my PC to the Linux Enviroment and tried to re-install the visual C++ express in the windows based on the vmware. Unfortunately, the VC++ express failed to be installed sucessfully due to some unknown errors. So I turn to compile and test the code purely in the Linux envrioment, as the Loki states that it is completely supported by the gcc.
?
Actually, it is a little mysterial that how to compile the test code, at least generate?the .o file to run under the command line, because I am not sure how to dedicate the include path for a specified src file and futher how to include other src files on which the on-testing files are depending.
?
Select the file Factory.cpp as an example. Before I test the this src file, I have no idea that which files should this Factory.cpp use.
First step, because all the .h files this Loki project uses are all stored in the directory ../loki-0.1.7/include, even I have no compelete knowlege that which .h files are used in this test, I can indicate the g++ compiler to search the dedicated directory firstly before the current directory and the system including directory. Just like below:
?
g++ -I? /localdisk/data/alex_dyn/loki/loki-0.1.7/loki-0.1.7/include/ -o /localdisk/data/alex_dyn/hello /localdisk/data/alex_dyn/loki/loki-0.1.7/loki-0.1.7/test/Factory/Factory.cpp
?
However, although the .h files can be found, many errors? like "undefined reference to `Loki::SmallObjAllocator::~SmallObjAllocator()" blocks the generation of the hello.o. It is because some implementation of the methods are not found. Actually, only the .h files are inlcuded, but the implementaiton files are not found.
So, I need to find where these undefined references are, i.e, find the src files which the Factory.cpp depends on. As the all the source files are already added to the sourceinsight tool project, it is easy to find that the undefined references are from two files Singleton.cpp and SmallObj.cpp. Actually, all the libary src .cpp files (not the testing files with main() function )?are in the directory /localdisk/data/alex_dyn/loki/loki-0.1.7/loki-0.1.7/src.
How to let the Factory.cpp to know where these undefined reference to be found? I ever tried to dedicate the src directory in the compiling process, but failed. When checking the priciple for writing the Makefile in the linux envriroment, it is found that I can compile the depending files to .o files firstly, with the compile option -c, which means no executive files are generated for those src files without main() function. Usage of the -c option?is usually used to make the modules which?are linked later to?other modules.?
?
So the next step?is to?compile the Singleton.cpp and SmallObj.cpp to generat the?middle product Singleton and SmallObj.
?
g++ -c -I? /localdisk/data/alex_dyn/loki/loki-0.1.7/loki-0.1.7/include/ -o /localdisk/data/alex_dyn/SmallObj /localdisk/data/alex_dyn/loki/loki-0.1.7/loki-0.1.7/src/SmallObj.cpp
g++ -I? /localdisk/data/alex_dyn/loki/loki-0.1.7/loki-0.1.7/include/ -c -o /localdisk/data/alex_dyn/Singleton /localdisk/data/alex_dyn/loki/loki-0.1.7/loki-0.1.7/src/Singleton.cpp
?
We can see two result files: SmallObj and Singleton in directory /localdisk/data/alex_dyn
[alexzh@alexzhang_lnx alex_dyn]$ ll /localdisk/data/alex_dyn
total 328
drwxr-xr-x? 2 root?? root????? 4096 Feb? 6 19:54 boost
drwxr-xr-x? 3 root?? root????? 4096 Feb 15 15:45 loki
-rw-r-----? 1 alexzh NSS_VC??? 7260 Feb 15 17:07 Singleton
-rw-r-----? 1 alexzh NSS_VC?? 57244 Feb 15 16:47 SmallObj

With these two depending files,?I tried to?linked them to Factory.cpp when compiling the Factory.cpp as:
[alexzh@alexzhang_lnx src]$ g++ -I? /localdisk/data/alex_dyn/loki/loki-0.1.7/loki-0.1.7/include/ -o /localdisk/data/alex_dyn/hello /localdisk/data/alex_dyn/Singleton/localdisk/data/alex_dyn/SmallObj /localdisk/data/alex_dyn/loki/loki-0.1.7/loki-0.1.7/test/Factory/Factory.cpp
The final executive file hello are found in the /localdisk/data/alex_dyn now. Enter this?diretory and execute the hello as
[alexzh@alexzhang_lnx alex_dyn]$ pwd
/localdisk/data/alex_dyn
[alexzh@alexzhang_lnx alex_dyn]$ hello
?
creator function is a simple function:
createProductNull()
createProductParm( int a, int b )
?
creator function is a overloaded function:
createProductOver()
createProductOver( int a, int b )
?
creator function is a member function:
Creator::create()
Creator::create( int a, int b )
?
creator function is a template member function
CreatorT<T>::create()
CreatorT<T>::create( int a, int b )
?
creator function is a functor parameter
createProductParm( int a, int b )
??? called by createProductRuntime(CreateFunctor func, int a, int b)
CreatorT<T>::create( int a, int b )
??? called by createProductRuntime(CreateFunctor func, int a, int b)
?
Registered ids:
Four
One
Three
Two
?
OK, that is the way I can follow to debug the rest files in this Loki project......Opps..
?

posted on 2009-02-15 19:43 everspring79 閱讀(1684) 評(píng)論(4)  編輯 收藏 引用 所屬分類: Notes

評(píng)論

# re: How to Compile/Test Loki source code in Linux 2009-02-15 20:08 everspring79

For any suggestion or experience of you on this pratice, please kindly reply this tip directly. Thanks!  回復(fù)  更多評(píng)論   

# re: How to Compile/Test Loki source code in Linux 2009-02-16 09:25 zuhd

nice English, how can you do this, really amazing!  回復(fù)  更多評(píng)論   

# re: How to Compile/Test Loki source code in Linux 2009-02-16 11:53 true

ni de ying yu hen hao ,ru he zuo dao de?mao si ni zai wai qi  回復(fù)  更多評(píng)論   

# re: How to Compile/Test Loki source code in Linux[未登錄](méi) 2009-02-16 11:58 Everspring79

@true
Yes, English is our working language, which is mandatory in all kinds of communications like email, conference, presentation, document, etc. Actually, it is quite simple to use English for technical communication, compared with the daily English.  回復(fù)  更多評(píng)論   

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            精品电影在线观看| 欧美福利视频一区| 欧美高清在线| 久久国产精品亚洲77777| 亚洲欧美伊人| 欧美96在线丨欧| 久久米奇亚洲| 国产欧美一区二区三区久久| 亚洲免费高清| 亚洲免费福利视频| 免费成人性网站| 麻豆久久婷婷| 好吊视频一区二区三区四区| 亚洲欧美日韩在线不卡| 亚洲综合电影| 国产精品欧美日韩一区二区| 日韩一区二区精品| 一区二区三区四区五区视频| 欧美成人亚洲成人| 免费观看在线综合| 在线观看欧美一区| 久久久亚洲欧洲日产国码αv| 久久久久中文| 在线观看中文字幕亚洲| 久久日韩精品| 亚洲高清网站| 亚洲精品乱码久久久久| 欧美国产激情| 99综合电影在线视频| 亚洲一区二区三区久久| 国产精品啊啊啊| 亚洲一区二区三区在线视频| 性欧美xxxx视频在线观看| 国产精品网站视频| 欧美在线一区二区三区| 免费亚洲电影在线观看| 亚洲精品国产视频| 欧美日韩中国免费专区在线看| 在线中文字幕一区| 久久9热精品视频| 海角社区69精品视频| 嫩草伊人久久精品少妇av杨幂| 亚洲精品在线观看免费| 亚洲综合日韩在线| 国产一区二区三区网站| 裸体歌舞表演一区二区| 亚洲人成7777| 欧美一区成人| 亚洲国产精品久久91精品| 欧美日韩国内自拍| 亚洲欧美日韩在线综合| 欧美a级片一区| 在线综合亚洲| 国产一区二区三区四区| 欧美激情一区二区三区不卡| 中国女人久久久| 免费观看成人鲁鲁鲁鲁鲁视频| 99一区二区| 国产亚洲观看| 欧美日韩不卡视频| 亚洲免费视频在线观看| 亚洲国产精品一区在线观看不卡 | 亚洲视频在线观看网站| 久久久91精品国产| 日韩午夜激情av| 含羞草久久爱69一区| 欧美日本亚洲韩国国产| 久久9热精品视频| 99国产精品国产精品久久| 久久蜜桃精品| 亚洲欧美日韩爽爽影院| 亚洲精品婷婷| 好看的日韩av电影| 国产精品进线69影院| 老牛嫩草一区二区三区日本| 亚洲一区二区三区四区五区黄| 欧美电影免费观看高清完整版| 午夜一区二区三区在线观看| 亚洲日本视频| **欧美日韩vr在线| 国产亚洲欧洲997久久综合| 欧美性大战久久久久久久| 免费日韩成人| 久久精品国产99精品国产亚洲性色| 99re8这里有精品热视频免费| 欧美1区视频| 久久国产精品久久w女人spa| 在线午夜精品| 99精品欧美| 亚洲日本免费| 亚洲日本精品国产第一区| 狠狠色狠狠色综合系列| 国产免费成人在线视频| 欧美午夜片欧美片在线观看| 欧美久久久久免费| 欧美顶级大胆免费视频| 美女诱惑一区| 蜜桃久久精品乱码一区二区| 久久久久国产精品一区二区| 欧美在线看片| 久久国产精品久久久久久久久久| 午夜在线视频观看日韩17c| 亚洲午夜在线| 午夜老司机精品| 欧美一级在线亚洲天堂| 欧美一级片一区| 欧美在线网站| 久久久久久久精| 久久亚洲综合色| 蜜臀久久99精品久久久久久9| 久久综合给合久久狠狠狠97色69| 久久偷窥视频| 免费一级欧美片在线播放| 欧美成人一区二免费视频软件| 欧美xxx成人| 欧美理论电影网| 欧美亚韩一区| 国产日韩欧美三级| 红桃视频国产一区| 亚洲人妖在线| 在线视频欧美一区| 欧美在线观看视频| 免费不卡中文字幕视频| 亚洲电影一级黄| 日韩一二三在线视频播| 亚洲一区二区精品在线观看| 午夜亚洲影视| 久久精品亚洲一区二区三区浴池| 久久综合国产精品台湾中文娱乐网| 欧美va日韩va| 国产精品久久久久久久久搜平片| 国产在线精品一区二区夜色| 亚洲二区精品| 亚洲一区二区精品视频| 久久久久五月天| 亚洲电影免费观看高清| 亚洲婷婷综合色高清在线| 欧美在线亚洲在线| 欧美激情综合亚洲一二区| 国产精品视频第一区| 亚洲成人在线网| 亚洲午夜精品国产| 美女诱惑黄网站一区| 夜夜嗨一区二区| 久久久亚洲国产天美传媒修理工 | 欧美顶级艳妇交换群宴| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ入口 | 国产精品久久久免费| 一区二区三区在线高清| 一区二区免费在线观看| 久久久精彩视频| 99国产精品久久久久久久| 久久精品网址| 国产精品久久久久久久久动漫| 激情av一区| 亚欧成人在线| 亚洲国产精品一区| 久久电影一区| 国产精品一二一区| 亚洲精品免费在线播放| 久久久国产精彩视频美女艺术照福利| 亚洲精品乱码久久久久久| 久久久国产精品亚洲一区| 国产精品久久久久天堂| 亚洲美女视频网| 欧美暴力喷水在线| 欧美在线播放高清精品| 国产精品久久久久久久久搜平片| 亚洲日本无吗高清不卡| 久久综合精品国产一区二区三区| 一本色道久久综合亚洲精品小说| 免费成人性网站| 亚洲成色精品| 久久噜噜亚洲综合| 欧美一区二区精品在线| 国产精品久久91| 一区二区三区视频免费在线观看| 欧美激情欧美狂野欧美精品| 欧美中文字幕在线| 国产农村妇女毛片精品久久莱园子| 亚洲网站在线播放| 99re热这里只有精品免费视频| 欧美成人一区二区三区片免费| 在线欧美电影| 免费不卡中文字幕视频| 久久久综合视频| 黄色日韩精品| 麻豆成人精品| 可以免费看不卡的av网站| 伊人男人综合视频网| 老司机精品视频网站| 久久男女视频| 亚洲成人在线网| 亚洲第一页中文字幕| 免费在线成人| 亚洲美洲欧洲综合国产一区| 亚洲国产综合91精品麻豆| 欧美激情视频一区二区三区在线播放| 亚洲精品中文字幕有码专区| 亚洲国产乱码最新视频|