Friday 19 July 2013

C4DROID – C/C++ Compiler for Android mobiles! Free download

| |

C4droid is a simple C/C++ compiler for Android which has full support of ANSI C and some support of ISO C99. With C4DROID you can now write your own C/C++ code and run them right on your Android mobile. C4DROID comes with Makefile assistance and uses TCC compiler (with optional GCC compiler). C4DROID Also Supports SDL/NativeActivity/Qt apps for GUI, to use it you need to install additional plugins listed at the end of this post.
Download C4DROID - C++ Compiler for Android
Compiling C++ projects:
  1. Make sure you have Enough internal memory.
  2. Install GCC plugin (C4droid will ask you to install it).
  3. Select G++ compiler in C4droid preferences.
  4. Use iostream, not iostream.h
  5. Add “using namespace std;” to your program (before int main)
Compiling Makefile projects:
  1. 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’ll press Ok).
  2. After configuring folder, you can press compile button and C4droid will build your project.
  3. Don’t forget to enter executable name and select compilation mode (and press ok also, else changes will be discarded)
Compiling SDL/NativeActivity/Qt apps:
  1. To compile SDL/NativeActivity/Qt apps, you need GCC/G++ compiler selected (TCC is not supported).
  2. So First Install “GCC plugin for C4droid” from Google playstore.
  3. Now install “SDL plugin for C4droid“. Once you have installed both the plugins, you can now compile SDL/NativeActivity/Qt apps
  4. Make sure while compiling, GCC/G++ compiler selected is selected as TCC is not supported.
  5. SDL is detected with #include “SDL.h”, NativeActivity is detected with #include “android_native_app_glue.h”, Qtis detected with #include “QtGui”.
* ] If you have any “Illegal instruction” error, using internal compiler (TCC), Use GCC plugininstead, GCC supports softfloat (by default).

C4DROID – C/C++ Compiler for Android mobiles! Free download


Related Posts Plugin for WordPress, Blogger...
Powered by Blogger.