dpigen post-generation command failure

Hi,
I'm currently running R2017b matlab. I ran into an issue where it shows "Error evaluating the post generation command" Dynamic allocated array are not supported in DPI-C component. However, from the report, I didn't see any issue related to the code except for this error message. It seems to be related to the building process. It would be very much appreciated if there is a recommended mechanism to debug this issue such as more information and an insight on what might be a potential issue.
Thank you very much,
Tsung-Chi Chang

Answers (1)

Hi chang try these steps
Check the post generation command make sure it doesn't reference any dynamic allocated arrays or unsupported constructs in the DPI-C component.
Review at the code generation report for any additional information or warnings related to the error.
Try updating your matlab version may be new versions would have fixed the bugs.
Try checking this documentation regarding dpigen

1 Comment

Hi,
Thanks for the quick response. Below is the only error I got from the report and the matlab compilation on the left side looks all clean. Could you suggest somehelpful post generation commands in this situation?
Best regards

Sign in to comment.

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Products

Release

R2017b

Asked:

on 8 Jun 2023

Commented:

on 8 Jun 2023

Community Treasure Hunt

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

Start Hunting!