24小时热门版块排行榜    

查看: 1121  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[文学芳草园] 梦想 +5 myrtle 2026-08-26 8/400 2026-09-02 02:42 by Leogzhya
[基金申请] 投票:  有多少人是今天查系统知道结果的? +17 爱看书的可乐 2026-08-26 19/950 2026-09-02 00:19 by xiangy672
[基金申请] 为什么国自然不能直接公布 +5 bjdxyxy 2026-08-26 5/250 2026-09-01 17:54 by 小伟大博士
[基金申请] 麻烦专家们看看评委们的意见(F口面上) +7 gdd2018 2026-08-28 12/600 2026-09-01 08:32 by 尼古拉斯小虫
[基金申请] 怎么看青基中了没有啊 +6 叶九微 2026-08-26 6/300 2026-08-31 23:54 by yudaoqian88
[基金申请] 面上意见出来了 +12 黄鸟于飞Chao 2026-08-29 23/1150 2026-08-31 18:57 by 黄鸟于飞Chao
[基金申请] 能否申诉? +7 echo8914667 2026-08-30 8/400 2026-08-31 17:00 by yihongxu
[基金申请] 基金不中,共勉 +12 eulota 2026-08-26 12/600 2026-08-31 08:42 by ZJTJZ
[基金申请] 有没有仍没收到信息的 +7 德尚中行 2026-08-27 8/400 2026-08-30 20:52 by purplejack
[基金申请] 我就是申请一个面上项目而已,这评审意见是按照杰青的条件评的吧? +6 gouxfjh 2026-08-28 11/550 2026-08-30 07:57 by gouxfjh
[基金申请] 国自然评审意见 +13 wangmingqi 2026-08-28 19/950 2026-08-29 10:22 by Poppy1104
[基金申请] 2026年叶企孙基金 +4 bud_bud 2026-08-27 7/350 2026-08-29 07:23 by foolishmani
[基金申请] 系统查不到 +11 董八千 2026-08-26 11/550 2026-08-28 18:06 by Leogzhya
[基金申请] 看板上这么多中的,有点像50人群里49个人都是骗子的那种感觉…… +5 a089 2026-08-26 6/300 2026-08-27 14:05 by jonewore
[基金申请] 我不理解! +15 Edward_pc 2026-08-26 23/1150 2026-08-26 20:34 by zzuzxg
[基金申请] 出来了 +9 trojank 2026-08-26 9/450 2026-08-26 14:25 by 宝贝虫子
[基金申请] 国合里面能看到了 +7 一怀馨秋 2026-08-26 7/350 2026-08-26 11:23 by zhaosm1982
[基金申请] 国际合作可查了,中了面上 (EPI+1)(金币+50) +18 Ldrop2023 2026-08-26 18/900 2026-08-26 11:15 by cmrandy
[基金申请] 系统进不去 +4 yanglien 2026-08-26 5/250 2026-08-26 11:10 by wenfengw83
[基金申请] 国合可查了 +3 paperzjh 2026-08-26 3/150 2026-08-26 10:41 by LemmonTr
信息提示
请填处理意见