Download C4droid
C4droid (C / C ++ compiler) is a C ++ Compiler, after installation need wifi to download a plug-in library, this is a bright spots in the app.
Basic features:
– 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.
More features with a free GCC plugin:
– Fully-functional C++ compiler, almost complete C++11 support with GCC compiler
– 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
C4droid is designed to be user-friendy out-of-the-box, but nothing is perfect, so here are some answers for questions that can appear:
How to install C++ support?
C4droid will ask you to install C++ support at first startup and will configure itself in semi-automatic mode.
If you want to do that manually, you need:
0) Enough internal memory OR root rights. C4droid does not require root rights for devices with more than 50MB of free internal memory.
1) Install GCC plugin (C4droid will ask you to install it).
2) Select G++ compiler in C4droid preferences.
3*) Add “using namespace std;” to your program(before int main), use iostream, not iostream.h
Note that if you want to use C4droid as a C compiler, it is better to select GCC, not G++.
Almost the same way as regular Makefile building except for that most probably some patching may be required.
Comments
Post a Comment