Undefined function or variable 'clibgen'.

1 view (last 30 days)
Hi,
I am trying to follow the article "https://blogs.mathworks.com/developer/2019/07/11/cpp-interface/" using clibgen. However I am getting strange error that Undefined function or variable 'clibgen' and Undefined variable "clibgen" or class "clibgen.generateLibraryDefinition". I am using Matlab 2018 rb. Let me know if anybody knows a solution for this problem.
Thanks
  1 Comment
Geoff Hayes
Geoff Hayes on 10 Dec 2020
Binu - the first line in the article mentions _...exciting new feature in R2019a ..._. Given that you are using R2018b, then it seems that it wouldn't be available for your version.

Sign in to comment.

Answers (1)

Shiva Kalyan Diwakaruni
Shiva Kalyan Diwakaruni on 15 Dec 2020
Hi,
The feature you are trying to use is release in matlab R2019a and you are trying to use clibgen function in matlab R2018b hence the error "Undefined function or variable 'clibgen' and Undefined variable "clibgen" or class "clibgen.generateLibraryDefinition" " is occuring .Please use any versions after R2019a to eliminate the error.
Thanks

Community Treasure Hunt

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

Start Hunting!