Coder CppNamespace is an Unrecognized Property
이전 댓글 표시
Per the MATLAB coder documentation here:
I would like to define a namespace.
The documentation provides the following code as an example:
cfg = coder.config('dll');
cfg.TargetLang = 'C++';
cfg.CppNamespace = 'generated';
codegen -config cfg foo
My code is the following:
txcfg = coder.config('dll');
txcfg.TargetLang = 'C++';
txcfg.EnableOpenMP = false;
txcfg.CppNamespace = 'Transmitter';
txcfg.PreserveVariableNames = 'UserNames';
txcfg.GenCodeOnly = true;
txcfg.Toolchain = 'Microsoft Visual C++ 2017 v15.0 | nmake (64-bit Windows)';
Yet, the above coder config produces the following error:
Unrecognized property 'CppNamespace' for class 'coder.CodeConfig'.
Error in OFDMSynchronizationExample (line 25)
txcfg.CppNamespace = 'Transmitter';
Why isn't this working?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 ARM Cortex-A Processors에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!