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

EverSpring working shop

To pursue creative ideas based on nature.

統(tǒng)計(jì)

留言簿(1)

他山之石

閱讀排行榜

評論排行榜

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 閱讀(1673) 評論(4)  編輯 收藏 引用 所屬分類: Notes

評論

# 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ù)  更多評論   

# 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ù)  更多評論   

# 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ù)  更多評論   

# re: How to Compile/Test Loki source code in Linux[未登錄] 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ù)  更多評論   

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            日韩亚洲视频在线| 亚洲无线观看| 美女图片一区二区| 亚洲国产成人av好男人在线观看| 久久综合九色欧美综合狠狠| 久久久久久久久久久久久女国产乱| 黄色一区三区| 亚洲片国产一区一级在线观看| 欧美成人午夜剧场免费观看| 亚洲视频第一页| 亚洲欧美在线一区二区| 精久久久久久| 亚洲人成网站在线播| 国产精品私房写真福利视频| 久久中文字幕导航| 欧美精品在线播放| 欧美在线free| 欧美激情久久久久| 性8sex亚洲区入口| 欧美a级大片| 午夜亚洲精品| 久久久夜精品| 亚洲欧美日韩第一区| 久久久精品国产一区二区三区| 亚洲免费观看在线观看| 小嫩嫩精品导航| 一区二区欧美亚洲| 久久精彩免费视频| 中文一区二区| 美国三级日本三级久久99| 亚洲自拍电影| 欧美成人午夜激情在线| 欧美专区第一页| 欧美激情按摩| 久久永久免费| 国产精品一区三区| 亚洲伦理精品| 最新精品在线| 久久夜色精品| 久久久久久久久久久久久久一区| 欧美日韩三区四区| 欧美高清视频免费观看| 国产亚洲欧美色| 在线一区免费观看| 亚洲精品网站在线播放gif| 性欧美办公室18xxxxhd| 亚洲一区二区三区视频播放| 欧美aⅴ一区二区三区视频| 久久精品国产亚洲一区二区| 国产精品国产精品| 亚洲伦理久久| 一本久道久久综合婷婷鲸鱼| 免费在线亚洲欧美| 老司机免费视频一区二区三区 | 99re66热这里只有精品4| 亚洲国产精品热久久| 久久爱www.| 欧美伊人久久| 国产精品一区二区在线| 亚洲一区二区三区高清不卡| 中文欧美在线视频| 欧美日韩在线一区二区三区| 亚洲理伦在线| 亚洲婷婷在线| 国产精品久久久久久亚洲毛片| 妖精视频成人观看www| 日韩一区二区精品| 欧美日韩成人综合在线一区二区| 亚洲精选成人| 亚洲一区二区欧美| 欧美亚洲成人精品| 亚洲一级二级| 久久精品视频免费播放| 国产一区二区高清不卡| 久久精品日产第一区二区| 久久香蕉国产线看观看网| 在线观看日韩精品| 欧美高清在线视频| 一区二区不卡在线视频 午夜欧美不卡在 | 精久久久久久| 欧美国产激情二区三区| 日韩午夜在线播放| 亚洲欧美综合国产精品一区| 国产视频一区在线| 久久久久久亚洲精品杨幂换脸| 欧美1区3d| 夜夜嗨av一区二区三区网站四季av | 亚洲激情中文1区| 一区二区三区四区蜜桃| 国产精品久久久久久av下载红粉 | 欧美另类99xxxxx| 亚洲一区黄色| 欧美成年网站| 亚洲欧美国产不卡| 一区二区三区在线免费播放| 欧美黄色影院| 欧美亚洲一区二区在线| 亚洲丁香婷深爱综合| 亚洲欧美福利一区二区| 精品999久久久| 欧美日韩在线视频观看| 久久精品99国产精品日本| 亚洲国产美女精品久久久久∴| 亚洲免费视频观看| 亚洲国产精彩中文乱码av在线播放| 欧美日韩久久| 久久嫩草精品久久久精品一| 99re6热只有精品免费观看| 久久久青草青青国产亚洲免观| 亚洲另类自拍| 精品成人国产| 国产精品久线观看视频| 玖玖精品视频| 午夜在线视频观看日韩17c| 亚洲人成人99网站| 榴莲视频成人在线观看| 欧美一区二区三区播放老司机| 亚洲精品黄色| 伊人久久大香线蕉av超碰演员| 欧美性色综合| 欧美裸体一区二区三区| 久久躁日日躁aaaaxxxx| 午夜伦理片一区| 在线亚洲一区| 一本色道久久精品| 日韩网站在线观看| 欧美高清视频一区二区| 久久综合伊人77777蜜臀| 欧美一区二区国产| 亚洲一区三区电影在线观看| 99riav久久精品riav| 亚洲国产精品久久久久婷婷老年| 国产欧美亚洲日本| 国产精品久久久久久久一区探花| 欧美人与禽性xxxxx杂性| 久久一区二区精品| 久久天天躁狠狠躁夜夜爽蜜月 | 亚洲国产欧洲综合997久久| 免费不卡欧美自拍视频| 久久婷婷av| 牛夜精品久久久久久久99黑人 | 久久久久这里只有精品| 久久精品首页| 久久综合电影一区| 久久网站热最新地址| 久久久久国色av免费观看性色| 欧美一区二区高清| 久久久国产精品一区二区三区| 久久精品国产精品亚洲| 久久久久久伊人| 麻豆精品精华液| 亚洲二区三区四区| 最新国产乱人伦偷精品免费网站| 亚洲精品欧洲| 亚洲视频一二区| 午夜精品久久久久久久99樱桃| 先锋影音久久| 久久天天狠狠| 欧美日韩国产123区| 国产精品免费在线| 国产视频精品免费播放| 精品999网站| 夜久久久久久| 欧美尤物巨大精品爽| 另类图片国产| 日韩一区二区精品葵司在线| 亚洲香蕉成视频在线观看| 久久福利视频导航| 欧美成年人网站| 国产精品多人| 在线播放中文一区| 99在线热播精品免费| 亚洲在线中文字幕| 久久久福利视频| 亚洲精品久久久久久久久久久久| 亚洲一区在线观看视频| 久久亚洲风情| 国产精品激情电影| **网站欧美大片在线观看| 亚洲视频中文| 另类尿喷潮videofree| 夜色激情一区二区| 久久久中精品2020中文| 国产精品va在线| 亚洲福利电影| 久久成人资源| 日韩视频一区二区三区在线播放免费观看| 亚洲一区美女视频在线观看免费| 噜噜噜91成人网| 国产午夜久久久久| 亚洲美女啪啪| 老牛嫩草一区二区三区日本| 这里是久久伊人| 可以看av的网站久久看| 国产女人精品视频| 在线一区欧美| 亚洲黄网站黄| 免费一级欧美片在线播放| 国产偷久久久精品专区| 亚洲一区二区三区精品在线|