Descrição
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.


























Paulo
27/Set/2012 13:15:04
Toshiba AT100 Não dou as 5 estrelas, pois faltam muitos includes no cpp. I'm not rating it 5 stars, there are a lot of missing include libs for cpp, also it does not compile the same code as the computer does using bloodshed dev cpp. It's hard to make it work with gcc. I paid for the app.
hall
25/Set/2012 2:40:31
ótimo C4droid é um aplicativo que me surpreendeu muito bom, tu tens a possibilidade de fazer alterações no editor escolhendo a fonte para uso o template do editor no caso branco, preto com fontes coloridas e também ha opções de compilação ao estilo gcc funciona também com c++ junto com um teclado fica bem divertido fazer programas e salvar no tablet mesmo ! As bibliotecas só devem ser carregas tipo assim c++ "iostream" c "stdio" para o compilador achar ! Paulo keller
Arthur
23/Ago/2012 3:38:05
Sensacional Muito bom. Nao vou dar 5 estrelas pois não consegui usar a biblioteca conio e nem o system("cls")
Roberto
4/Ago/2012 3:38:56
Ótimo! Realmente um app show de bola, na falta de um desktop compre sem medo!
mvalverde
3/Mai/2012 3:41:34
Muito bom Achei muito bom, porém dei apenas 3 estrelas pois ainda não tem a biblioteca boost, nem a tr1. Outra coisa que não gostei é que o plugin do GCC só pode ser instalado na memória interna. O dia que o autor disponibilizar o boost e fazer rodar com tudo na memória externa darei 5 estrelas! =)
Jompa
28/Abr/2012 5:09:48
Muito bom Muito bom, basta melhorar mais a navegacao do cursor qndo for editar uma linha
Elze
16/Abr/2012 5:41:51
Indispensável Para vc que faz faculdade, não há melhor, valeu muito, muito bom o trabalho e espero atualizações.
Lucas
14/Abr/2012 20:20:07
Funcionou muito bem no asus tf101
Fabio
6/Abr/2012 18:18:50
Bom Aqui funcionou sem bugs
André
30/Mar/2012 1:59:12
Muito bom Recomendo no galaxy nexus