Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 5 months ago.
include <cstdlib> not found
This sample program here https://os.mbed.com/users/pierrebizouard/code/DISCO-F429ZI_LCDTS_demo_richard/ can compile successfully using the Online Web Compiler, and I can download the .bin file to my STM32 DISCOVERY board. It runs and all. Great.
But if I try to clone this demo program locally to my computer using mbed import https://os.mbed.com/users/pierrebizouard/code/DISCO-F429ZI_LCDTS_demo_richard/
and setup mbed target and mbed toolchain for my device, the "demo_richard" program above refuses to compile.
The compiler reports that this line
- include <cstdlib> is the problem, and file not found. This line is present in the /BSP/STM32F429ZI-Discovery/stmf429i_discovery_lcd.c
For kicks, I tried commenting this line, and the program then compiles successfully but the uploaded .bin to my devboard does not run.
I'm a newb here, and tried googling and search for fix to this problem but I'm just stumped.
What am I missing? How can this program compile successfully using the Online compiler but fails to compile using mbed-cli.
Any help/point to the right direction is highly appreciated.