Stdlib.h Errors When Compiling Simulink Models for VeriStand Linux RT

Updated Nov 1, 2023

Issue Details

I am creating a model in Simulink and compiling for a VeriStand Linux RT target. When compiling the model in Simulink using the Veristand.tlc for VeriStand Linux targets, I receive an error that stdlib.h is missing. How do I solve this?


This error is related to the VeriStand toolchain not being properly accessible due to missing files or environment variables. To solve this, try:
  1. Reinstall the Eclipse C/C++ Development Tools
  2. Ensure that the Eclipse/toolchain variables are within the Windows Path and Environment variables so that Windows can find the toolchain. 
  3. Ensure that no other variables referencing \usr\bin are within the Windows Path and Environment variables as this could cause a conflict when searching for the tools.
  4. Disable any antivirus or security software that could be quarantining any related files to the Eclipse compiler.


Additional Information

To change Windows Path and Environment variables on Windows 10, press the Windows + R key and then type the following:
rundll32.exe sysdm.cpl,EditEnvironmentVariables

Navigate to "Path" and press "Edit". This will bring up the Path variables. Note that deleting variables is not recommended and should only be done by advanced users who know what they are doing.