フィルターのクリア

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 Center および File ExchangeSimulink Coder についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by