Building Multi-Threaded Applications Print

 

In order to build a multi-threaded application and link it with the appropriate POSIX-threads library, do the following.

After activation of the cross-build environment (. ./ACTIVATE.sh), run the following command (linux-dp.c being the application in the below example):

$ arm-v7-linux-uclibceabi-gcc -o linux-dp \
linux-dp.c -mcpu=cortex-m3 -mthumb -static -pthread