If you build your own you need to install the build systemĪnd build an image for your platform. If you use the SDK, the instruction page hadn't been updated when this was written but 19.07.2 SDKs were available, this tutorial was tested with this SDK version. You can use the OpenWrt SDK or you can build your own. You can certainly use a different layout but you will need to adapt some paths in this howto if you put things somewhere else. Minor changes may be needed to adapt it to your preferred systems. This howto was was developed and tested on a fresh install of Debian 10 in VirtualBox, Eclipse Version: 2020-03 (4.15.0) and a Buffalo WZR-600DHP running OpenWrt 19.07.2.
Next time you compile, the -std=c++11 flag will be present on your compiler command line and the C++11 standard will be used.When you develop a new program or adapt an existing program for use on OpenWrt a graphical ide like Eclipse can be useful especially for debugging.
Following the steps below, we added the -std=c++11 flag on the GCC C++ Compiler command line arguments enabling the standard for our use. When using Eclipse CDT to write C++, we noticed that it did not enable by default the C++11 standard. 30 November 2017 in Applications tagged -std=c++11 / C++ / C++11 / CDT / compiler / eclipse / eclipse CDT / gcc / GCC C++ Compiler / standard by Tux