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.

Answers (0)

Categories

Find more on Embedded Coder in Help Center and File Exchange

Asked:

on 22 Apr 2022

Commented:

on 23 Jan 2024

Community Treasure Hunt

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

Start Hunting!