rt_logging.c : fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory

13 views (last 30 days)
Hello all,
I use CANOE API in Simulink and build my model with system target file cn.tlc. But it always occurs include file errors during building progress. For example, following error occurs:
D:\MATLAB\rls2017b\rtw\c\src\rt_logging.c(21): fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory
But if I change the include file path with absolute path, the problem is solved. But another error is created, because other include file is included in code, for example #include <string.h>.
It seems that the link between compiler and head file is invalid. How can I fix this, thanks a lot!
PS: Matlab version is 2017b and compiler is Visual Studio 2017 professional.

Answers (1)

Stefanie Schwarz
Stefanie Schwarz on 17 Jun 2025

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!