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

EverSpring working shop

To pursue creative ideas based on nature.

統(tǒng)計

留言簿(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 閱讀(1688) 評論(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>
            欧美成人一区二区三区| 最新69国产成人精品视频免费| 欧美激情一区二区三区在线| 久久9热精品视频| 国产综合色一区二区三区| 欧美中在线观看| 欧美在线啊v| 在线观看日韩精品| 欧美www视频| 欧美精品九九| 午夜精品久久久久久| 亚洲综合色在线| 一区二区三区在线视频播放| 欧美大片网址| 欧美日韩国产页| 欧美伊人久久久久久久久影院| 亚洲欧美激情在线视频| 国产亚洲一区在线播放| 久久亚洲精品一区二区| 欧美精品18+| 欧美亚洲免费在线| 玖玖国产精品视频| 一区二区三区国产在线观看| 亚洲在线视频网站| 亚洲国产高清一区二区三区| 亚洲美女电影在线| 国产欧美日韩精品一区| 免费观看一级特黄欧美大片| 欧美巨乳波霸| 久久久久国内| 欧美区在线观看| 久久女同互慰一区二区三区| 欧美国产精品劲爆| 久久精品日韩欧美| 欧美精品在线视频观看| 久久国产精品久久久| 欧美精品videossex性护士| 欧美在线影院| 欧美日韩国产综合一区二区| 麻豆精品精品国产自在97香蕉| 欧美精品一卡| 欧美成人综合一区| 国产日韩欧美在线看| 日韩亚洲精品电影| 伊人久久大香线| 亚洲欧美日韩国产中文| 9人人澡人人爽人人精品| 久久国产主播精品| 性久久久久久久久| 欧美日韩美女一区二区| 欧美超级免费视 在线| 国产欧美日韩一级| 一本色道久久综合亚洲精品婷婷| 亚洲国产一二三| 欧美一级在线亚洲天堂| 亚洲欧美视频在线| 欧美日韩一区二区在线| 91久久中文| 亚洲黄色影片| 久久性天堂网| 麻豆成人在线播放| 一区国产精品| 9色精品在线| 久久伊人亚洲| 欧美.com| 亚洲国产福利在线| 久久综合伊人| 欧美激情导航| 亚洲美女色禁图| 欧美精品精品一区| 亚洲精品一区二区三| 99国产精品一区| 欧美视频在线看| 在线视频日本亚洲性| 亚洲一区欧美激情| 国产精品欧美在线| 性欧美办公室18xxxxhd| 久久精品视频免费观看| 国产性猛交xxxx免费看久久| 久久国产精品免费一区| 久久亚洲视频| 亚洲精选成人| 欧美日韩免费高清| 亚洲免费视频网站| 久久久一区二区三区| 亚洲国内精品| 欧美日韩一区在线播放| 亚洲图片欧洲图片日韩av| 欧美一区二区三区四区高清| 国产一区二区你懂的| 美国成人直播| 一二三四社区欧美黄| 久久国产精品高清| 91久久久一线二线三线品牌| 欧美精品一区二区在线观看| 亚洲一区视频在线| 久久夜色精品国产欧美乱| 亚洲日本成人| 国产精品制服诱惑| 久久亚洲高清| 亚洲黄一区二区| 欧美在线观看你懂的| 亚洲国产精品女人久久久| 欧美日韩亚洲视频| 久久精品麻豆| 一本色道久久综合亚洲精品高清 | 亚洲一二三区精品| 国产色婷婷国产综合在线理论片a| 久久久亚洲成人| 一区二区精品| 欧美国产激情| 欧美一区1区三区3区公司| 亚洲高清中文字幕| 国产精品色婷婷久久58| 欧美成人一区二免费视频软件| 一区二区三区日韩在线观看| 欧美福利视频在线| 欧美一区二区三区久久精品| 亚洲日本中文字幕| 国产一区二区三区精品欧美日韩一区二区三区| 麻豆久久精品| 久久精品72免费观看| 亚洲网友自拍| 亚洲精品国产精品国自产观看| 久久日韩精品| 久久国产婷婷国产香蕉| 一区二区三区国产在线观看| 在线播放日韩专区| 国产一区91精品张津瑜| 国产精品porn| 欧美日韩在线一二三| 欧美成人精品h版在线观看| 久久精品视频免费| 亚洲欧美中文字幕| 亚洲一区二区在线观看视频| 日韩视频精品| 99国产精品一区| 亚洲黄色免费| 亚洲国产va精品久久久不卡综合| 久久久99国产精品免费| 香蕉视频成人在线观看| 午夜在线精品| 欧美一区二区精品| 欧美一区1区三区3区公司| 亚洲欧美日本日韩| 亚洲欧美日韩精品综合在线观看| 亚洲精品免费在线| 亚洲三级色网| 99re8这里有精品热视频免费| **欧美日韩vr在线| 伊人婷婷欧美激情| 亚洲第一页自拍| 亚洲精品国产日韩| 99视频在线观看一区三区| 亚洲精品在线一区二区| 日韩午夜中文字幕| 一区二区三区精品| 亚洲综合日本| 欧美一级片在线播放| 欧美一区二区啪啪| 久久久久久亚洲精品中文字幕| 久久久精品999| 牛牛精品成人免费视频| 欧美成人精品三级在线观看| 亚洲国产精品久久久久久女王| 亚洲日韩欧美视频| 亚洲午夜久久久久久久久电影网| 午夜精彩视频在线观看不卡| 久久久精品国产免费观看同学| 久久久亚洲高清| 欧美日韩网址| 国产午夜亚洲精品理论片色戒| 1769国内精品视频在线播放| 99精品视频免费全部在线| 亚洲一区三区视频在线观看| 欧美一区二区三区视频在线| 欧美韩日亚洲| 亚洲午夜三级在线| 久久久久久网| 国产精品国产三级国产a| 国产亚洲精品久久飘花| 亚洲欧洲一区二区三区久久| 亚洲女人天堂成人av在线| 欧美一区亚洲一区| 亚洲黄色免费| 欧美在线精品免播放器视频| 欧美激情视频网站| 国产欧美二区| 99精品视频免费| 久久在线免费| 亚洲一区二区精品在线| 欧美不卡一区| 国产综合在线看| 亚洲一卡久久| 亚洲国产视频一区二区| 新67194成人永久网站| 欧美午夜性色大片在线观看| 在线观看av不卡| 久久九九热re6这里有精品| 日韩特黄影片|