This post is on Compile and run a C/C++ program on the Android using C4droid and Cppdroid compiler and IDE, for other articles, check our homepage.
You can compile and run C/C++ programs on Android device in two ways.
- C4Droid - C/C++ Compiler and IDE (paid)
- CppDroid - C/C++ Compiler and IDE
Let us have a look at C4Droid - C/C++ Compiler and IDE features.
Features of C4Droid - C/C++ Compiler and IDE -
- Offline C compiler: create your own applications on Android device and run them even without Internet access
- Source code editor with syntax highlighting, tabs, code completion, code formatting, file association and undo/redo
- Export&share your programs as APKs or native executables (for terminal apps)
- No root required (but C4droid can use it for your programs if you want)
- Full ANSI C and ISO C99 support with TCC (Tiny C Compiler) + uClibc
- Git integration
- Customizable GUI, choose where to place tabs and buttons by yourself, themes are also supported.
- Full C++ and almost complete C++11 support with GCC + Bionic libc
- NativeActivity, Qt, SDL and SDL2 support for GUI
- Debugger with breakpoints and watches
- Makefile support: use the same build scripts as on your PC (BusyBox is included)
- Semi-automatic open-source library porting feature for enhanced programming & education
You can visit this app on Play store. Click here to go to the C4Droid app page on Google Play.
NOTE : This is a paid app. (Not Free of Cost)
Now, Let us have a look at CppDroid - C/C++ Compiler and IDE features, which is a free app
- code complete
- real-time diagnostics (warnings and errors) and fixes
- file and tutorial navigator (variables, methods, etc)
- static analysis
- smart syntax highlighting
- portrait/landscape UI
- auto indentation and auto pairing (configurable)
- configurable code syntax highlighting (themes)
- compile C/C++ code (no root required)
- works offline (built-in compiler, no internet connection required)
- great C/C++ code examples included
- detailed C++ tutorial and learn guide included
- add-ons manager and auto updates
- Dropbox support
You can visit this app on Play store. Click here to go to the CppDroid app page on Google Play.