C4droid - C/C++ compiler & IDE Application icon

C4droid - C/C++ compiler & IDE Varies with device

1 MB / 50K+ Downloads / Rating 4.7 - 3,246 reviews


See previous versions

C4droid - C/C++ compiler & IDE, developed and published by n0n3m4, has released its latest version, Varies with device, on 2020-10-07. This app falls under the Education category on the Google Play Store and has achieved over 50000 installs. It currently holds an overall rating of 4.7, based on 3.246 reviews.

C4droid - C/C++ compiler & IDE APK available on this page is compatible with all Android devices that meet the required specifications (Android 2.3+). It can also be installed on PC and Mac using an Android emulator such as Bluestacks, LDPlayer, and others.

Read More

App Screenshot

App Screenshot

App Details

Package name: com.n0n3m4.droidc

Updated: 4 years ago

Developer Name: n0n3m4

Category: Education

New features: Show more

Installation Instructions

This article outlines two straightforward methods for installing C4droid - C/C++ compiler & IDE on PC Windows and Mac.

Using BlueStacks

  1. Download the APK/XAPK file from this page.
  2. Install BlueStacks by visiting http://bluestacks.com.
  3. Open the APK/XAPK file by double-clicking it. This action will launch BlueStacks and begin the application's installation. If the APK file does not automatically open with BlueStacks, right-click on it and select 'Open with...', then navigate to BlueStacks. Alternatively, you can drag-and-drop the APK file onto the BlueStacks home screen.
  4. Wait a few seconds for the installation to complete. Once done, the installed app will appear on the BlueStacks home screen. Click its icon to start using the application.

Using LDPlayer

  1. Download and install LDPlayer from https://www.ldplayer.net.
  2. Drag the APK/XAPK file directly into LDPlayer.

If you have any questions, please don't hesitate to contact us.

App Rating

4.7
Total 3,246 reviews

Reviews

5 ★, on 2020-04-13
Hi! I'm trying to compile those Qt examples on my Android 9, Huawei. However, the C4droid always gets stuck when unpacking the Qt library files. Available RAM: 800 MB Available storage: 2.8 GB Device: Huawei ANE-LX1 [EDIT 2] Thank you very much! The problem was that Huawei killed Cute Loader in the background. I turned off battery saving for it and now it works perfectly. Thank you!

5 ★, on 2019-07-04
Loving it, but a few questions. 5/5 because it does what it says and does it well. However, I'm attempting to include SDL2_Mixer and it can't find the source files. Didn't know where else to contact for help. I was completely unable to locate the folder with the default SDL2 installation to double check its presence myself and ensure I'm including at the right directory. Any help?

4 ★, on 2020-09-07
This is mobile IDE is great. I wish there was a desktop mode in support of applications like Samsung Dex.

5 ★, on 2019-09-07
This is my preferred Android C/C++ compiler and integrated development environment. I have no idea why anyone would want to rate this app any less than 4 stars at any given time. The 1 star reviews do have a purpose though. Typically, I find most of those 1 star reviews very, very entertaining as they are moronic, funny, and posted usually by morons. Just warning you, a good number of people laugh at these idiotic 1 star reviews, and I am one them.

1 ★, on 2019-08-05
I don't know about past versions but now text editor is faulty and software developer insists on pretending this is normal. Long pressing text will select text at another position than the one where the finger is, and that can be at the beginning of the document, having to scroll over multiple pages to get back to the right position. So this is very annoying.

5 ★, on 2019-07-27
Incredible app. I've been using it for about 4 years now and it is absolutely great. You can compile many (most?) libraries in it and use them in your own code, including cmake projects and those with configure scripts. It has fully working OpenGL ES support and I've written a mini game-engine with it, without any issues.

Previous Versions

C4droid - C/C++ compiler & IDE Varies with device
2020-10-07 / 1 MB / Android 2.3+

About this app

C4droid is the most powerful C/C++ IDE + C/C++ compiler for Android.

Features:
• Offline C/C++ compiler: create your own applications on Android device and run them even without Internet access
• Qt, SDL, SDL2, Allegro, SFML, FLTK and NativeActivity support for graphics
• Export & share your programs as APK or binaries
• Debugger with breakpoints and watches
• CMake and Makefile support: use the same build scripts as on your PC (BusyBox is included)
• Source code editor with syntax highlighting, tabs, code completion, code formatting, file association and undo/redo
• 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) + musl libc
• Fully-functional C++ compiler, complete C++11 support with GCC
• Git integration
• Customizable GUI, choose where to place tabs and buttons by yourself, themes are also supported
• 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 use Makefiles, multifile projects, etc?
Long-click compile button (or select "compilation settings" if buttons are hidden/moved) and configure current directory to use the mode you want.
Note that C4droid will create .c4droid configuration file when you press Ok. Some modes (like makefile) require to enter result executable file name, don't forget to do that.
After doing that all use compile and run buttons to build and run your app as regular.

How to use graphics libraries in single-file mode?
Just install SDL plugin and select G++ compiler in C4droid preferences.
Note that C4droid chooses app mode using a very simple source code analysis:
every graphics mode is detected with corresponding include string (e.g. SDL is detected with #include "SDL.h", check bundled examples for more info). Commenting out these lines will not have any effect.
If you are compiling a single-file Qt app, you should also add #include "yoursourcefilenamewithcpp.moc" to the end of source code file also.

How to install C++ support manually?
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 (100MB+) internal memory
1) Install GCC plugin
2) Select G++ compiler in C4droid preferences
Note that if you want to use C4droid as a C compiler, it is better to select GCC, not G++.

How to build and install libraries?
Almost the same way as regular Makefile building except for that most probably some patching may be required.
Currently tested libraries are gmp, mpfr, mpc, libxml2, neon, sqlite, SDL_gfx (--disable-mmx required).

Which gestures/keyboard shortcuts does C4droid support?
Long-click gestures:
New button: delete current file.
Save button: save as.
Open button: recent files.
Run button: run with arguments.
Compile button: configure current directory.
Tab: close tab.

Keyboard shortcuts:
Ctrl-C, Ctrl-V, Ctrl-X for Copy, Paste and Cut
Ctrl-S, Ctrl-O for Save/Open
Ctrl-Z, Ctrl-Y for Undo/Redo.
Ctrl-L for "go to Line"
Ctrl-F for Find
Ctrl-A for select All
Ctrl-B for Build/compile
Ctrl-R for Run
Ctrl-Space/Ctrl-D for autocompletion (Ctrl-Space may be reserved by Android)

Report bugs at n0n3m4@gmail.com.

C4droid stands for "c for android" (or "c++ for android").
C4droid is not an online compiler, so it uses real binaries.
Some binaries in APK are licensed under (L)GPL, email me for the source code (Tiny C compiler, GCC, BusyBox, etc.)
Android is a trademark of Google Inc.
Qt is a registered trademark of Digia.

New features

Fixed a lot of bugs.
Updated GCC to 10.2.
Qt doesn't require any 3rd-party apps anymore.
Terminal can now be closed with Ctrl+X.
SDL2 now supports immersive mode.