Azzera filtri
Azzera filtri

Error while generating C code

30 visualizzazioni (ultimi 30 giorni)
Ananda Krishnan
Ananda Krishnan il 17 Mag 2021
Risposto: Tasneem il 13 Lug 2022
### 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.

Risposte (1)

Tasneem
Tasneem il 13 Lug 2022
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.

Categorie

Scopri di più su Simulink Coder in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by