Opened 5 years ago
Last modified 3 years ago
#5886 accepted defect
Use of undeclared identifier and undefined reference to *_array_get function — at Initial Version
Reported by: | Owned by: | Lennart Ochel | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Code Generation | Version: | v1.16.0-dev |
Keywords: | Cc: | francesco.casella@… |
Description
The following model (Top in the Bug package) fails compilation.
For some reason, if z is 1, omc produces C code including calls to a nonexistent function Bug_Component_array_get. The calls to this function also reference a parameter "components" which does not exist in the caller's context.
Setting z to anything than 2 produces working code, where the Bug_Component_array_get is not declared not used anywhere.
Note:
See TracTickets
for help on using tickets.
Code causing the compilation error