Description
C4droid is a user-friendly (but powerful) C/C++ IDE + C/C++ compiler for Android with GNU Makefile, SDL and Qt support. C4droid supports devices with ARM processors only (not devices with Intel x86 or MIPS processor).You can create your own applications on Android device and run them even without Internet access: compiler is offline. Result can be exported to an executable (for terminal apps) or APK (for apps with GUI).
This app uses TCC and uClibc (or GCC + Bionic with a plugin), so it has full support of ANSI C and ISO C99 (and full C++ support with GCC).
C4droid supports syntax highlighting, code completion and source code formatting, so it is a very handy tool for education and programming on the go.
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*) Use iostream, not iostream.h
4*) Add "using namespace std;" to your program (before int main)
C4droid contains a Terminal Emulator with BusyBox, so you can use Makefiles without any changes, shell commands syntax is the same as on Linux PC.
To compile Makefile projects, open any file in the same folder with Makefile and long-click "Compile" to configure current directory (C4droid will create .c4droid configuration file when you will press Ok). After configuring folder, you can press compile button and C4droid will build your project.
Do not forget to enter executable name and select compilation mode (and press ok also, else changes will be discarded)
You can also build and install open-source libraries the same way. Currently tested libraries are gmp(internal memory only),mpfr,mpc,libxml2,neon,sqlite,SDL_gfx(--disable-mmx required).
C4droid supports SDL, NativeActivity and Qt for GUI now, install SDL plugin for C4droid to use it (only GCC/G++ compiler is supported, so you need GCC plugin also).
(SDL is detected with #include "SDL.h", NativeActivity is detected with #include "android_native_app_glue.h", Qt is detected with #include "QtGui").
Qt support limitations:
1) If you are compiling a single-file Qt app, you must add #include "yoursourcefilenamewithcpp.moc" to the end of file. If you are using .pro file for compilation, you do not need to do that.
Quick manual:
If you have found a bug or app is not working, email me.
Long click actions:
Save button: save as.
Open button: recent files.
Run button: run with arguments.
Compile button: configure current directory.
Tab: close tab.
Result of compilation (binary or APK) can be exported using menu->export.
If you have "Illegal instruction" error using internal c compiler (TCC), install GCC plugin, GCC supports softfloat by default.
C4droid will check license via the Internet.
Report bugs at n0n3m4@gmail.com.
Some binaries contained in APK are licensed under (L)GPL, email me to get the source code (Tiny C compiler, GCC, BusyBox, etc.)
Android is a trademark of Google Inc.
Qt is a registered trademark of Digia.


























Greydyeyou
Oct 3, 2012 3:18:26 AM
Excellent What a great app. I'm a student studying C++ and now having this app on my tablet means I don't have to carry my heavy laptop. Only gripe I have would be that there is no auto-formatting. Would be great if there was. Great app!
Tan
Oct 2, 2012 7:22:42 PM
Great work Seldom use it but should be one of the most practical app out there.
Clay
Oct 2, 2012 5:57:34 PM
AMAZING I use this every day. My samsung galaxy s3 has never had more functionality. It's extremely convenient not only for testing and running code, but also just for writing basic applications for myself for things i do every day. I think n0n3m4 should create a compiler that can run the scripts without having to display them (ie, just select a pre-coded cpp and it runs it without opening the editing window.) That would pretty much allow us to code basic android apps in c++. It would be especially useful for people like me who use the code theyve written on a daily basis. But overall, best purchase I've ever made, especially in terms of android apps. Thanks n0n3m4! Keep up the amazing work!
Ankit
Oct 1, 2012 6:48:05 PM
Grt work Its perfect
Ed
Sep 30, 2012 9:29:46 PM
Viewing Header Filles Needed for Serious User I understand this will thankfully be available in next update from author. Thanks much for this valuable Android App !
Jacob
Sep 27, 2012 7:25:05 PM
Exactly what I wanted Great application. Just what I needed for my class. Runs much faster than I expected it to. My only suggestion to the creator is that when you use an external keyboard and click somewhere on your code, the soft keyboard pops up on screen. It would be nice to have an option to disable that. Love that the compiler is offline so I can use it anywhere.
Deadgnom32
Sep 26, 2012 4:03:53 PM
best best best best best
Anonymous
Sep 26, 2012 5:47:34 AM
Great App This app is great, just wrote a c++ program for my advanced topics class no problem, could use more color patterns and ability to cin but otherwise very complete, best part is no need for internet to compile, awesome app
Richard
Sep 26, 2012 12:42:14 AM
C4droid rocks ***** Programming with C on my computer phone is better then playing games. I paid the cost to have this on my Droid Pro and I am happy every time I use it. Ten Stars **********
Roy
Sep 25, 2012 8:57:13 PM
Great App For Beginning Programmers App works great! I use this for my introduction to C programming class. I have a Droid Bionic and a lapdock 500. With a little tweaking of the preferences, this program works just as well as Visual Studio Express (for my needs) and is a little more simple to use. A tip of the hat to the developer for creating an app with utility. TLDR: Write code, compile, run, it works.