Warning: Name is nonexistent or not a directory in code generation
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am generating code (just generate, not build) from a model containing a mex-function with manual c code. This code is in the directory "C_Codes" at the same level as the model files. The mex-function was made using the function builder.
The next message appears during code generation
### TLC code generation complete.
Warning: Name is nonexistent or not a directory: D:\Models\01_AIRCRAFT\slprj\ert\Aircraft\IO
Warning: Name is nonexistent or not a directory: D:\Models\01_AIRCRAFT\slprj\ert\Aircraft\..\IO
Warning: Name is nonexistent or not a directory: D:\Models\01_AIRCRAFT\slprj\ert\Aircraft\C_Codes
### File Utilit.c associated with S-Function 'Motion_Equation' (used in 'Aircraft/Motion_Equation') does not exist
"IO" "..\IO" "C_Codes" folders from mex-function builder settings.
Why Simulink create SUMM from build directory and builder settings like
"D:\Models\01_AIRCRAFT\slprj\ert\Aircraft\" + "..\IO"?!
I try to fix situation on Code Generation>Custom Code>Include directories tab, but this has no effect
0 Commenti
Risposte (1)
Mark McBroom
il 7 Mag 2023
Did you enter info in the "Include Headers", "Include directories" and "Source Files" sections of the custom code dialog? In The Source files section you need to specify the full path to Utilit.c.
Vedere anche
Categorie
Scopri di più su String in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!