How can I compile a C++ program that uses Mbed OS?
I've started learning Mbed on the online compiler. Since I don't have that much internet access, I downloaded the GitHub repository for offline use. I have built the library using: $ python tools/build.py -m K64F -t GCC_ARM It created a directory called BUILD/mbed which has a structure like: drivers hal mbed.h platform TARGET_K64F/TOOLCHAIN_GCC_ARM drivers, hal, platform and TARGET_K64F had header files. TOOLCHAIN_GCC_ARM had header and object files and the library. I tried compiling the program as: $(CXX -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fmessage-length=0 -W -Wall -Os -mcpu=cortex-m4 -DCPU_MK64FN1M0VLL12 -c -o blinky.o blinky.cpp -I{includes to mbed dirs} I linked it like arm-none-eabi-gcc -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fmessage-length=0 -W -Wall -Os -T <script> -o blink.elf *.o <TOOLCHAIN_GCC_ARM> -lmbed -lstdc++ -lc -lg -lm -lgcc I keep getting errors of undefined vars. What should I do?