24小时热门版块排行榜    

查看: 1054  |  回复: 0

digghost

木虫 (著名写手)

[求助] Kim的安装问题

可以成功单独编译kim,但是lammps就怎么都报错, directoryPath的变量抱错的时候变成3个了.
//---------------------------------------------------KIM_API_DIRS-------------------------------------------
#ifndef KIMHDR_KIM_API_DIRS_H
#define KIMHDR_KIM_API_DIRS_H
#include <string>
#include <list>
enum DirectoryPathType
{
   KIM_DIR,
   KIM_MODEL_DRIVERS_DIR,
   KIM_MODELS_DIR
};
void directoryPath(DirectoryPathType type, std::list<std::string>* lst);
#endif /* KIMHDR_KIM_API_DIRS_H */
//----------------------------------------------------------------------------------------------------------------------------------
/-------------------------kim-api.cpp------------------------------------------------------------------------------------------------------------
#include <KIM_API_DIRS>   
std::list<std::string> lst;
    directoryPath(KIM_MODELS_DIR, &lst);
/-------------------------------------------------------------------------------------------------
/-------------------------run results--------------------------------------------------------------------------------
root/openkim-api-v1.3.0/KIM_API/libkim.a(KIM_API.o): In function `KIM_API_model::get_model_kim_str(char const*, int*)':
/root/openkim-api-v1.3.0/KIM_API/KIM_API.cpp:1492: undefined reference to `directoryPath(DirectoryPathType, std::list<std::string, std::allocator<std::string> >*)'
make[1]: *** [../lmp_linux] Error 1
make[1]: Leaving directory `/root/lammps-17Dec13/src/Obj_linux'
make: *** [linux] Error 2
/----------------------------------------------------------------------------------------
回复此楼

» 猜你喜欢

呵呵了
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

找到一些相关的精华帖子,希望有用哦~

科研从小木虫开始,人人为我,我为人人
相关版块跳转 我要订阅楼主 digghost 的主题更新
信息提示
请填处理意见