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

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>
            久久影院午夜论| 欧美黑人多人双交| a4yy欧美一区二区三区| 欧美一区二区三区免费观看视频| 亚洲国产欧美一区二区三区久久| 亚洲制服丝袜在线| 亚洲午夜精品久久久久久app| 久久久久久九九九九| 性欧美8khd高清极品| 欧美视频免费看| 亚洲毛片在线观看| 日韩视频一区二区| 美国十次成人| 欧美黄色影院| 亚洲欧洲精品一区二区| 久久久久国产一区二区| 久久久精品国产99久久精品芒果| 国产精品成人免费视频| 一区二区三区欧美日韩| 亚洲网站在线播放| 国产精品成人免费视频| 一本色道久久精品| 午夜精品国产更新| 国产精品午夜在线观看| 午夜精品久久久久久| 久久av资源网| 国产亚洲亚洲| 久久精品在线观看| 欧美成人午夜| 日韩视频专区| 国产精品久线观看视频| 亚洲在线视频免费观看| 欧美在线资源| 国内精品久久久久久久影视蜜臀| 欧美一区二区精品久久911| 久久精品一区蜜桃臀影院| 国产一区二区丝袜高跟鞋图片| 午夜精品久久久久久久99樱桃 | 欧美日韩一区在线视频| 亚洲美女在线视频| 亚洲欧美区自拍先锋| 国产精品久久久久久久久久尿| 亚洲一区二区在线看| 久久久人成影片一区二区三区观看| 国产自产2019最新不卡| 久久嫩草精品久久久久| 亚洲国产精品www| 亚洲永久精品大片| 黄色成人免费观看| 欧美黄色aaaa| 午夜一区在线| 亚洲成色精品| 欧美伊久线香蕉线新在线| 亚洲福利视频网| 欧美视频一区二区三区| 久久er99精品| 亚洲另类视频| 久久美女性网| 亚洲图片欧美一区| 韩国女主播一区| 欧美剧在线免费观看网站| 亚洲综合色激情五月| 欧美aa国产视频| 亚洲欧美在线一区| 亚洲激情婷婷| 国产色视频一区| 欧美精品九九| 久久久噜噜噜久久狠狠50岁| 一区二区高清视频| 欧美成人精品在线播放| 羞羞答答国产精品www一本| 亚洲黄色小视频| 国产亚洲成av人片在线观看桃| 欧美大片91| 久久精品夜色噜噜亚洲a∨| 一区二区三区高清| 亚洲高清一二三区| 久久久久久久性| 亚洲制服av| 99精品99| 亚洲国产美女久久久久 | 欧美三级视频在线| 久久婷婷亚洲| 久久av一区二区三区亚洲| 一本色道久久综合亚洲91| 亚洲福利视频二区| 久久亚洲国产精品一区二区| 午夜精品久久久久久久白皮肤| 亚洲日本中文| 亚洲第一区色| 狠狠色丁香婷婷综合久久片| 国产精品久久久一本精品| 欧美人与禽性xxxxx杂性| 久久久久久亚洲精品杨幂换脸 | 国产精品国产三级欧美二区| 欧美xart系列高清| 美女视频黄免费的久久| 久久精品亚洲| 久久久精品久久久久| 欧美一区二区视频免费观看 | 久久这里有精品视频| 欧美一区三区三区高中清蜜桃| 一本色道久久88亚洲综合88| 亚洲精品欧美| 亚洲另类自拍| 亚洲伦理中文字幕| 日韩网站在线看片你懂的| 亚洲国产精品免费| 欧美激情一级片一区二区| 欧美成人精品三级在线观看| 欧美激情精品久久久久久黑人 | 欧美与欧洲交xxxx免费观看| 亚洲欧美中文字幕| 午夜久久一区| 欧美一区二粉嫩精品国产一线天| 在线亚洲美日韩| 午夜亚洲性色福利视频| 香蕉亚洲视频| 玖玖玖国产精品| 欧美成人精品1314www| 欧美激情成人在线视频| 欧美日韩一区三区| 国产精品亚洲综合一区在线观看| 国产伦精品一区二区三区免费迷| 国产欧美日韩中文字幕在线| 激情成人综合| 91久久在线视频| 亚洲网在线观看| 欧美在线视频一区二区三区| 久久久夜色精品亚洲| 欧美国产先锋| 一区二区三区www| 久久成人国产| 欧美日韩另类综合| 国产日韩精品入口| 亚洲激情电影在线| 亚洲男女自偷自拍图片另类| 久久久蜜桃精品| 91久久国产精品91久久性色| 中文av一区特黄| 久久九九国产精品怡红院| 欧美精品激情在线| 国产亚洲一区二区三区在线播放| 亚洲国产日韩综合一区| 亚洲欧美在线网| 欧美国产日韩一区二区三区| 亚洲午夜电影网| 欧美成人精品影院| 国产人成一区二区三区影院| 亚洲国产精品va在线看黑人动漫| 一区二区三区四区五区精品| 久久精品亚洲一区二区三区浴池| 亚洲高清不卡av| 欧美伊人精品成人久久综合97| 欧美黑人多人双交| 国产亚洲亚洲| 中文精品视频一区二区在线观看| 久久久久久噜噜噜久久久精品| 亚洲欧洲在线观看| 久久精品视频免费| 国产精品xxxxx| 亚洲精品网站在线播放gif| 久久网站免费| 亚洲一区在线免费| 欧美日韩成人在线视频| 影音先锋亚洲视频| 欧美一级在线播放| 亚洲精品网站在线播放gif| 久久手机免费观看| 国产亚洲美州欧州综合国| 亚洲综合日本| 99国产成+人+综合+亚洲欧美| 你懂的亚洲视频| 在线不卡视频| 玖玖玖国产精品| 欧美亚洲自偷自偷| 国产精品网站在线| 亚洲专区一二三| 99精品国产在热久久婷婷| 欧美黄色aa电影| 亚洲精品视频在线| 亚洲高清不卡| 欧美成人精品三级在线观看| 亚洲国产精品久久| 欧美成人免费全部观看天天性色| 久久久久久国产精品一区| 狠狠色狠狠色综合| 久久一区中文字幕| 久久久爽爽爽美女图片| 激情久久久久久久| 久久―日本道色综合久久| 午夜视频在线观看一区二区| 国产日韩在线不卡| 久久精品国产亚洲一区二区三区| 亚洲在线黄色| 国产一区二区精品久久| 裸体丰满少妇做受久久99精品| 久久国产精品久久w女人spa| 一区在线观看视频| 欧美成人午夜剧场免费观看|