필터 지우기
필터 지우기

Error while generating C code

조회 수: 30 (최근 30일)
Ananda Krishnan
Ananda Krishnan 2021년 5월 17일
답변: Tasneem 2022년 7월 13일
### Starting build procedure for: mod
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: D:\mod_ert_rtw
### Invoking Target Language Compiler on mod.rtw
### Using System Target File: E:\SOFTWARE\INSTALLED FILES\MAT2020\Program Files\Polyspace\R2020a\rtw\c\ert\ert.tlc
### Loading TLC function libraries
### Generating TLC interface API for custom data .
### Initial pass through model to cache user defined code
### Caching model source code
### Writing header file mod_types.h
### Writing header file mod.h
### Writing header file rtwtypes.h
### Writing source file mod.c .
### Writing header file mod_private.h
### Writing source file ert_main.c
### TLC code generation complete.
### Creating HTML report file mod_codegen_rpt.html### Using toolchain: LCC-win64 v2.4.1 | gmake (64-bit Windows) ### Build procedure for mod aborted due to an error.
Build process stopped because two files have the same filename in the list of source files: "ert_main.c mod.c ert_main.c"
Encountered the above described error during build process please kindly share any solutions if possible.
  댓글 수: 1
Yi Wang
Yi Wang 2022년 7월 13일
您好,楼主,有解决方法了吗?

댓글을 달려면 로그인하십시오.

답변 (1개)

Tasneem
Tasneem 2022년 7월 13일
It is my understanding that you are getting an error in the build process. If you look at the error message, it says that there are two files in the source files list, having same file name "ert_main.c mod.c ert_main.c". Please rename one of the file in the list and try to build it again.

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by