24小时热门版块排行榜    

查看: 1066  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 298求调剂 +6 上岸6666@ 2026-03-20 6/300 2026-03-22 20:21 by edmund7
[考研] 287求调剂 +8 晨昏线与星海 2026-03-19 9/450 2026-03-22 17:01 by i_cooler
[考研] 一志愿中南化学(0703)总分337求调剂 +9 niko- 2026-03-19 10/500 2026-03-22 16:08 by ColorlessPI
[考研] 305分求调剂(食品工程) +4 Sxy112 2026-03-21 6/300 2026-03-22 15:26 by 无懈可击111
[考研] 生物学调剂 +5 Surekei 2026-03-21 5/250 2026-03-22 14:39 by tcx007
[基金申请] 山东省面上项目限额评审 +4 石瑞0426 2026-03-19 4/200 2026-03-22 08:50 by Wei_ren
[考研] 考研调剂 +3 呼呼?~+123456 2026-03-21 3/150 2026-03-21 20:04 by 无际的草原
[考研] 302求调剂 +12 呼呼呼。。。。 2026-03-17 12/600 2026-03-21 17:29 by ColorlessPI
[考研] 304求调剂 +7 司空. 2026-03-18 7/350 2026-03-20 23:08 by JourneyLucky
[考研] 一志愿南京理工大学085701资源与环境302分求调剂 +4 葵梓卫队 2026-03-18 6/300 2026-03-20 23:02 by JourneyLucky
[考研] 考研调剂求学校推荐 +3 伯乐29 2026-03-18 5/250 2026-03-20 22:59 by JourneyLucky
[考研] 353求调剂 +3 拉钩不许变 2026-03-20 3/150 2026-03-20 19:56 by JourneyLucky
[论文投稿] 申请回稿延期一个月,编辑同意了。但系统上的时间没变,给编辑又写邮件了,没回复 10+3 wangf9518 2026-03-17 4/200 2026-03-19 23:55 by babero
[考研] 081700化工学硕调剂 +3 【1】 2026-03-16 3/150 2026-03-19 23:40 by edmund7
[考研] 0703化学调剂 +4 18889395102 2026-03-18 4/200 2026-03-19 16:13 by 30660438
[考研] 一志愿福大288有机化学,求调剂 +3 小木虫200408204 2026-03-18 3/150 2026-03-19 13:31 by houyaoxu
[考研] 收复试调剂生 +4 雨后秋荷 2026-03-18 4/200 2026-03-18 14:16 by elevennnne
[考博] 26博士申请 +3 1042136743 2026-03-17 3/150 2026-03-17 23:30 by 轻松不少随
[考研] 有没有道铁/土木的想调剂南林,给自己招师弟中~ +3 TqlXswl 2026-03-16 7/350 2026-03-17 15:23 by TqlXswl
[考研] 275求调剂 +4 太阳花天天开心 2026-03-16 4/200 2026-03-17 10:53 by 功夫疯狂
信息提示
请填处理意见