Matlab Codegen returns "CRL: "ANSI_C" cannot be found in the registry."

3 views (last 30 days)
Good afternoon,
I'm running into an error using the Matlab Codegen tools. When I invoke 'codegen', I always get back the following error:
CRL: "ANSI_C" cannot be found in the registry.
Use help codegen for more information on using this command.
Error using codegen
My Matlab skills aren't that strong, and I've exhaused my Google-fu with regards to this error message. I did try reinstalling Matlab -- no luck.
I'm running Matlab 2012B on Ubuntu 12.04. Matlab 2012B is for historical reasons (original project used this).
  1 Comment
Whitt Batcheler
Whitt Batcheler on 5 Jan 2016
To elaborate a little:
function [ z ] = psi_nds_multiply( x, y )
z = x * y;
end
>> codegen -config:lib psi_nds_multiply
CRL: "ANSI_C" cannot be found in the registry.
Use help codegen for more information on using this command.
Error using codegen
The above function (in a file called psi_nds_multiply.m), fails to codegen with the above error.

Sign in to comment.

Accepted Answer

Whitt Batcheler
Whitt Batcheler on 5 Jan 2016
Edited: Whitt Batcheler on 5 Jan 2016
Turns out that Matlab 2012B only supports gcc-4.4 and will not attempt to use any higher version of gcc.
sudo apt-get install gcc-4.4

More Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!