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

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 閱讀(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>
            欧美日韩一区二区精品| 亚洲黄色小视频| 亚洲国产精品精华液2区45| 欧美午夜a级限制福利片| 美女主播一区| 国内精品久久久久久久果冻传媒 | 亚洲人成艺术| 亚洲国产二区| 久久久亚洲午夜电影| 久久久久久**毛片大全| 国产精品日本| 亚洲女人天堂成人av在线| 亚洲一区二区黄| 欧美日韩中文字幕日韩欧美| 亚洲久久一区| 中文日韩电影网站| 欧美日韩国产高清| 亚洲精品免费看| 一区二区三区四区五区视频| 欧美精品性视频| 一区二区成人精品| 亚洲欧美在线观看| 国产精品美女在线观看| 亚洲综合好骚| 久久久视频精品| 在线观看亚洲一区| 欧美成人精品一区| 最新精品在线| 亚洲影院色无极综合| 国产精品亚洲а∨天堂免在线| 亚洲伊人色欲综合网| 久久久久99精品国产片| 在线播放日韩专区| 欧美黄免费看| 亚洲性视频网址| 久久精品国产精品亚洲综合| 怡红院精品视频在线观看极品| 老司机免费视频久久 | 美女视频一区免费观看| 亚洲福利国产精品| 欧美日韩在线播放一区| 亚洲欧美日韩在线高清直播| 久久久亚洲精品一区二区三区| 亚洲国产毛片完整版| 欧美日韩国产欧| 欧美一级免费视频| 亚洲国产天堂久久综合| 亚洲综合日韩| 亚洲国产精品一区制服丝袜 | 欧美激情精品久久久久久| 亚洲人成在线播放网站岛国| 翔田千里一区二区| 亚洲国产三级在线| 国产精品视频免费观看| 噜噜爱69成人精品| 亚洲一级在线观看| 亚洲国产毛片完整版 | 亚洲高清免费在线| 久久精品导航| 在线亚洲欧美视频| 亚洲国产成人porn| 国产精品一区二区你懂的| 欧美 日韩 国产在线| 新狼窝色av性久久久久久| 亚洲破处大片| 猛干欧美女孩| 欧美影院一区| 亚洲天堂av在线免费观看| 尤物网精品视频| 国产伦精品一区二区三区在线观看| 欧美.www| 狼狼综合久久久久综合网 | 久久久久综合网| 亚洲小少妇裸体bbw| 亚洲黄色免费电影| 免费成人黄色片| 欧美综合国产| 午夜精品免费在线| 亚洲视频电影图片偷拍一区| 亚洲国产精品激情在线观看| 国产一区二区看久久| 国产精品久久久久久久久久尿| 欧美高清在线视频| 免费成人av在线| 久久免费视频在线观看| 亚洲欧美日韩综合一区| 亚洲香蕉在线观看| 亚洲素人一区二区| 在线亚洲高清视频| 在线亚洲精品| 一本一本久久| 亚洲图色在线| 亚洲欧美日韩在线综合| 亚洲综合丁香| 欧美一区二区三区在线| 篠田优中文在线播放第一区| 亚洲免费在线观看| 亚洲午夜精品视频| 亚洲一区尤物| 新狼窝色av性久久久久久| 性色av香蕉一区二区| 欧美一进一出视频| 久久久久久久一区二区| 久久一区二区三区国产精品| 久久久精品午夜少妇| 久久综合给合久久狠狠狠97色69| 久久频这里精品99香蕉| 久久综合九色综合久99| 欧美成人69av| 欧美三区在线观看| 国产精品剧情在线亚洲| 国产精品视频网| 国精品一区二区三区| 亚洲国产精品成人va在线观看| 亚洲人成人一区二区三区| 一本高清dvd不卡在线观看| 亚洲婷婷在线| 久久精品人人做人人综合| 免费成人美女女| 亚洲精品一区二区在线观看| 一区二区免费在线视频| 亚洲欧美日韩在线播放| 久久五月激情| 欧美日韩免费看| 国产欧美一区二区色老头 | 亚洲一区二区久久| 久久精品在线免费观看| 欧美激情久久久久| 一本在线高清不卡dvd | 欧美精品国产一区| 国产精品普通话对白| 亚洲东热激情| 亚洲在线一区| 另类成人小视频在线| 亚洲免费不卡| 久久久噜噜噜久久中文字幕色伊伊| 欧美国产综合视频| 国产欧美三级| 日韩一区二区免费高清| 久久爱www久久做| 亚洲激情视频在线| 欧美中文字幕在线观看| 欧美激情视频网站| 国产一区亚洲| 中文国产亚洲喷潮| 欧美电影免费观看网站| 亚洲影院色无极综合| 欧美成人一区二区三区| 国产一区二区三区四区老人 | 亚洲精品永久免费| 久久精品视频在线免费观看| 亚洲精品日韩欧美| 久久久无码精品亚洲日韩按摩| 欧美日韩视频专区在线播放 | 亚洲激情综合| 久久米奇亚洲| 国产亚洲一区二区精品| 一区二区三区欧美在线观看| 欧美成人在线免费观看| 香蕉乱码成人久久天堂爱免费| 欧美日韩的一区二区| 亚洲国产婷婷| 久久亚洲欧美| 午夜视频在线观看一区| 欧美性开放视频| 99在线精品视频在线观看| 欧美成人网在线| 久久激情一区| 国内精品久久久| 久久精品免费看| 亚洲欧美精品一区| 国产精品三级视频| 亚洲女优在线| 亚洲视频在线观看视频| 欧美色图五月天| 亚洲一区二区三区四区视频| 亚洲欧洲综合另类| 欧美极品aⅴ影院| 日韩一级黄色av| 亚洲激情在线观看| 欧美激情在线狂野欧美精品| 91久久嫩草影院一区二区| 欧美成人精品一区| 蜜桃av一区| 亚洲人成在线免费观看| 亚洲国产一区二区三区青草影视| 老司机久久99久久精品播放免费| 永久91嫩草亚洲精品人人| 裸体歌舞表演一区二区| 久久亚洲春色中文字幕久久久| 亚洲成在线观看| 亚洲大片一区二区三区| 欧美黄色免费| 亚洲一区网站| 午夜视频一区| 影音先锋亚洲视频| 亚洲欧洲一区二区在线观看 | 亚洲精品中文字幕有码专区| 亚洲人妖在线| 国产精品美女久久久久久免费 |