OpenWrt Forum Archive

Topic: How to install gcc on openwrt?

The content of this topic has been archived on 18 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I've installed OpenWrt on virtualbox. I want to compile c/c++ code as well as write codes also.
How do we install gcc compiler on openwrt in detail

You will still need to install the basic (libc, musl, uClibc, etc) libraries and include files to use GCC to compile and link your code. AFAICT, these are stripped off from any packages. To include these files in any binary packages, you will need to modify the OpenWRT Makefile for the package to add those files.

The discussion might have continued from here.