24小时热门版块排行榜    

Znn3bq.jpeg
查看: 1071  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 材料工程281还有调剂机会吗 +24 xaw. 2026-04-11 24/1200 2026-04-12 10:32 by 猪会飞
[考研] 332求调剂 +14 蕉蕉123 2026-04-10 14/700 2026-04-12 00:27 by 蓝云思雨
[考研] 求调剂 +3 胃痉挛累了 2026-04-11 5/250 2026-04-11 14:13 by luhong1990
[考研] 283求调剂 +22 那个噜子 2026-04-09 22/1100 2026-04-11 10:41 by 逆水乘风
[考研] 化学工程与技术324调剂 +23 孙常华 2026-04-09 25/1250 2026-04-11 00:07 by 骑牛渡寒江
[考研] 083200 305分 求二轮调剂 不接受跨专业 +9 Claireyyyy 2026-04-09 10/500 2026-04-10 21:21 by Claireyyyy
[考研] 289 分105500药学专硕求调剂(找B区学校) +6 白云123456789 2026-04-09 8/400 2026-04-10 21:13 by zhouxiaoyu
[考研] 中科院总分315求调剂 +8 lallalh 2026-04-09 8/400 2026-04-10 19:30 by dick_runner
[考研] 314求调剂 +23 wakeluofu 2026-04-09 24/1200 2026-04-10 15:31 by MOF_Catal
[考研] 本科211 工科085400 280分求调剂 可跨专业 +3 LZH(等待调剂中 2026-04-09 3/150 2026-04-09 21:29 by wutongshun
[考研] 材料调剂 +14 一样YWY 2026-04-05 15/750 2026-04-09 13:36 by 故人??
[考研] 求调剂 +8 吃口冰激凌 2026-04-07 8/400 2026-04-09 08:03 by 5268321
[考研] 285求调剂 +12 AZMK 2026-04-05 18/900 2026-04-08 20:43 by 逆水乘风
[考研] 298求调剂 +4 manman511 2026-04-05 4/200 2026-04-08 16:50 by tjzhao
[考研] 化学0703-一志愿211-338分求调剂 +10 vants 2026-04-05 11/550 2026-04-08 16:02 by screening
[考研] 316求调剂 +4 15318418673 2026-04-07 4/200 2026-04-07 22:12 by hemengdong
[考研] 考研调剂 +3 Wwwwwww哇 2026-04-06 3/150 2026-04-06 20:55 by lbsjt
[考研] 一志愿北交大材料工程总分358求调剂 +10 cs0106 2026-04-05 12/600 2026-04-06 19:41 by 无际的草原
[考研] 081200-11408-276学硕求调剂 +5 崔wj 2026-04-05 5/250 2026-04-06 15:40 by lin-da
[考研] 求调剂 +10 chenxrlkx 2026-04-05 10/500 2026-04-06 11:31 by 猪会飞
信息提示
请填处理意见