Help with code build errors - ert_shrlib.tlc target file Device: intel X86-64 (Windows64)
显示 更早的评论
Hello,
I have generated code successfully for a Simulink model containting "fmincon" function from optimization toolbox. Now I want to compile it for hardware implementation with the following settings
- Device: Intel
- Device type: x86-64(Windows64)
- System target file: ert_shrlib.tlc
- Build process (both options unchecked)
However, the build fails due to bunch of syntax errors in "mmintrin.h" file. Here is one of the errors as an example
error: mmintrin.h: 27 Syntax error; missing semicolon before `__attribute__'
I've checked the code and I don't see any issues with syntaxes (following are the lines of code with errors)
typedef long long __m64 __attribute__((__vector_size__(8)));
typedef long long __v1di __attribute__((__vector_size__(8)));
typedef int __v2si __attribute__((__vector_size__(8)));
typedef short __v4hi __attribute__((__vector_size__(8)));
typedef char __v8qi __attribute__((__vector_size__(8)));
I appreciate your help with identifying the source of error.
1 个评论
Varun
2024-1-23
Hey! This could be a compiler issue. Which C++ compiler are you using?
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Embedded Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!