导入matlab仿真软件的静态C库金宝app

2视图(30天)
嘿,有一些麻烦静态c库导入Matlab仿真软件。金宝app
我使用MinGW-w64编译器(https://de.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.h金宝apptml)
也包括我的头文件,库的目录和通过模型仿真软件设置- >模拟目标。金宝app
头文件:
# include“IsoBaseApi.h”
# include“IsoClientsApi.h”
# include“IsoCommonApi.h”
# include“IsoCommonDef.h”
# include“IsoConf.h”
# include“IsoCoreApi.h”
# include“IsoDef.h”
# include“IsoFscApi.h”
# include“IsoMnApi.h”
# include“IsoMnNiuApi.h”
# include“IsoPgnDef.h”
# include“IsoSccApi.h”
# include“IsoStdTypes.h”
# include“IsoTccApi.h”
# include“IsoVtcApi.h”
库:
libcci_ecu_driver.a
C-Caller块可以导入和读取功能但试图调试模式后,我得到以下错误代码。
遇到错误(s)在构建自定义代码仿真模型“Smart_Traction_VT_Template”的目标。修复错误在您的自定义代码或禁用“导入自定义代码”如果您的自定义代码不兼容问题。
引起的:
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoBase.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoBaseDiag.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoBaseDistributor.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoMnAl.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoMnDl.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoMnSpn.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoCommon.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoCore.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoData.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoDrvN.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoMnNm.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoClients.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoClServ.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoClShCtrl.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoWoSe.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoFSC.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoSCCtrl.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoSCLogin.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoSCWork.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoTaskC.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoTcConn.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoTcCtrl.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoTcPd.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoTcPool.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoAux.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoPoObj.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoPool.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoVt.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(IsoVTCmd.c.obj)不兼容i386: x86 - 64输出
C: / ProgramData / MAT金宝appLAB / SupportPackages R2020a / 3 p.instrset / mingw_w64.instrset / bin / lib / gcc / x86_64-w64-mingw32/6.3.0 / . . / . . / . . / . . / . . / x86_64-w64-mingw32 / bin / ld。exe:未知结构的输入文件c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab_simulink \ \ lib_cci \ libc金宝appci_ecu_driver.a工作(UtPoPict.c.obj)不兼容i386: x86 - 64输出
c: \用户桌面\ \ marce \ arbeit_aul \ smart_traction_dokumentation \ matlab金宝app_simulink \ \ lib_cci \ libcci_ecu_driver.a工作(IsoBase.c.obj):不能读符号:无效的操作
collect2。exe:错误:ld返回1退出状态
我将感谢任何帮助。
1评论
Janani Janagarajan Kalaivani
Janani Janagarajan Kalaivani 2021年6月18日
你好,
形式构建错误日志,我怀疑你的静态库兼容硬件(操作系统,硬件架构)。同时,根据日志的建议,验证“导入自定义代码”配置参数对话框。导入自定义代码的更多信息可以在以下链接,
我假设你得到这个错误在模拟。如果静态库兼容,尝试使用其他编译器像微软Visual Studio。下面的链接信息改变默认的编译器。
//www.tatmou.com/help/matlab/matlab_external/changing-default-compiler.html

登录置评。

答案(0)

类别

找到更多的在部署、集成和硬件支持金宝app帮助中心文件交换

社区寻宝

找到宝藏在MATLAB中央,发现社区如何帮助你!

开始狩猎!