undefined reference to `__kmpc_begin'
代码如下:
int main(int argc, char** argv)
{
if (argc != 2)
{
printf("Usage: %s JobId\n", argv[0]);
exit(-1);
}
int info; // 存储调用函数的返回值,判断成功与否?
char* strJobId; // Store the current JobId
char strXmlPath[MAXLEN];// Store the directory where DataSplit.xml is.
char command[MAXLEN];// 存储可执行程序名
memset(command,0,sizeof(command));
strcpy(command,"DATASPLIT"); ////////从命令行获取参数,可执行程序名
strJobId=argv[1]; ////////从命令行获取参数,作业号
#ifdef DEBUG
printf("strJobId=%s in main of DataSplit!\n", strJobId);
#endif
// 根据作业号形成当前作业号的绝对路径
info=JobId2XmlPath(strJobId,strXmlPath,command);
if(info!=SUCCESS)
{
printf("Fail to call JobId2XmlPath in main\n");
return FAIL;
}
#ifdef DEBUG
printf("strXmlPath: %s in main\n", strXmlPath);
#endif
// 根据已有的xml文件,进行DataSplit的相关操作
info=Process(strXmlPath,"DATASPLIT",strJobId);
if(info!=SUCCESS)
{
#ifdef DEBUG
printf("Fail to call Process in the main DATASPLIT\n");
#endif
ErrorLog("DATASPLIT",strJobId,"10201");
return FAIL;
}
return SUCCESS;
}
编译问题如下:
icpc -O3 -DDEBUG -D_FILE_OFFSET_BITS=64 -g -Ddmc_linux -D_LINUX_ -Wno-deprecated -DMPICH_IGNORE_CXX_SEEK -openmp -c DataSplit.cpp -I/home/ghips//ghips_main/src/RDMPS_HPGFS/DATASPLIT/include/DMC4 -I/home/ghips//ghips_main/src/RDMPS_HPGFS/DATASPLIT/include/COMM -I /home/ghips//ghips_main/include/log -I/home/ghips//ghips_main/src/RDMPS_HPGFS/PUB/include -I /home/ghips//ghips_main/lib/occi/oracle/product/10.2.0/db_1/rdbms/public/ -I /home/ghips//ghips_main/lib/occi/oracle/product/10.2.0/db_1/plsql/public/ -I /home/ghips//ghips_main/include/cfs/xml -I /home/ghips//ghips_main/include/cfs/odl
icpc DataSplit.o AbstractDataSplit.o DataSplitPub.o -o DATASPLIT -L/home/ghips//ghips_main/src/RDMPS_HPGFS/DATASPLIT/lib -ldmc4 -L/home/ghips//ghips_main/lib/cfs/xml -lxmlconf -L/home/ghips//ghips_main/lib/cfs/xml -lxerces-c -lpthread -L/home/ghips//ghips_main/lib/sup/ -ljpeg -L/home/ghips//ghips_main/lib/cfs/odl -lodl -L/home/ghips//ghips_main/src/RDMPS_HPGFS/PUB/lib -lpub /home/ghips//ghips_main/lib/log/liblog.so /home/ghips//ghips_main/lib/log/liblog4cxx.so
/opt/intel/Compiler/11.1/072/lib/intel64/libimf.so: warning: warning: feupdateenv is not implemented and will always fail
ld: warning: i386 architecture of input file `/home/ghips//ghips_main/src/RDMPS_HPGFS/DATASPLIT/lib/libdmc4.a(idctmmx.o)' is incompatible with i386:x86-64 output
DataSplit.o: In function `main':
/home/ghips/ghips_main/src/RDMPS_HPGFS/DATASPLIT/src/COMM/DataSplit.cpp:15: undefined reference to `__kmpc_begin'
/home/ghips/ghips_main/src/RDMPS_HPGFS/DATASPLIT/src/COMM/DataSplit.cpp:58: undefined reference to `__kmpc_end'
/home/ghips/ghips_main/src/RDMPS_HPGFS/DATASPLIT/src/COMM/DataSplit.cpp:41: undefined reference to `__kmpc_end'
/home/ghips/ghips_main/src/RDMPS_HPGFS/DATASPLIT/src/COMM/DataSplit.cpp:56: undefined reference to `__kmpc_end'
make: *** [DATASPLIT] 错误 1
请大家帮忙解决,谢谢!非常着急!
相关推荐
【多无人机协同目标运输任务】多无人机协同目标运输任务中的路径规划与动态控制研究(Matlab代码实现)
内容概要:本文聚焦于多无人机协同执行目标运输任务中的关键问题,系统研究了复杂环境下多无人机系统的路径规划与动态控制策略,并提供了基于Matlab的完整仿真代码实现。研究内容包括多智能体协同机制设计、高效路径规划算法(如改进RRT*、A*等)的应用、动态响应控制策略(如反步控制、滑模控制等)的集成,以及任务过程中无人机间的协调控制逻辑。通过高保真度仿真验证了所提方法在不同场景下的有效性、鲁棒性与实用性,代码配备详尽注释,便于理解与二次开发。; 适合人群:具备一定控制理论基础和Matlab编程能力,从事无人机控制、多智能体系统、智能交通或机器人协同等方向的科研人员及研究生(工作1-3年或研一以上水平);; 使用场景及目标:①用于多无人机协同运输任务的算法设计与仿真验证;②支撑科研论文复现、课题开发及工程原型构建;③深入理解路径规划与动态控制在多机协同中的耦合关系与实现方式;; 阅读建议:建议结合Matlab代码逐模块调试运行,配合控制理论教材深化对控制律设计的理解;建议先掌握单无人机基本控制原理,再逐步过渡到多机协同逻辑的学习,以提升整体系统认知与实践效率。
RustFs文件同步中的rc命令所使用得到
RustFs文件同步中的rc命令所使用得到
Delphi D7Studio-1.2.1.0-setup.rar
Delphi D7Studio-1.2.1.0-setup.rar
chromedriver-linux64-161.0.8197.0(Canary).zip
Chrome for Testing 官方测试构建包,内含 Chrome 浏览器、ChromeDriver 与 Chrome Headless Shell,适用于对应平台的自动化测试、Selenium/Playwright 驱动与 CI 环境搭建。解压即用,请按文件名中的平台选择对应版本。
地方政府在制定高新技术企业创新能力补贴政策时,参考的官方评价标准是什么?.docx
科易网(厦门科易网科技有限公司)创立于2007年,是技术转移与科技创新数智化服务平台,拥有国家科技成果转化服务示范基地、国家技术转移示范机构等资质。平台以“AI+科技成果转化”为核心,整合成果、专利、专家、政策等多维数据,构建知识图谱与科创智能体,面向企业、政府、高校院所提供成果转化、技术需求对接、产业服务等数智化解决方案。截至目前,已服务全国企业超43万家,推动落地项目11800余项,总金额逾80亿元。


