Error compiling OpenCV, fatal error: stdlib.h: No such file or directory

Try by disabling pre-compiled headers, either from cmake-gui or using the command line parameter

-DENABLE_PRECOMPILED_HEADERS=OFF

Leave a Comment