The C4droid C++ compiler currently has issues with compiling code using C++. Using the C compiler works fine for C but the C++ side has problems.
If you have purchased and used the app with the GCC for C4droid plugin, you'll see that you constantly get Permission Denied errors. Doing things like chmod 777, 755, etc didn't work for me and probably won't work for you.
I've chatted back and forth with the creator of this app and we've (he) found a workaround. This workaround will make it so it is compiling through your MicroSD rather than the internal memory.
Pre-requisites: You must have BusyBox, SuperUser, C4droid, GCC for C4droid, and a Terminal Emulator installed. You also need a rooted device.
If you have purchased and used the app with the GCC for C4droid plugin, you'll see that you constantly get Permission Denied errors. Doing things like chmod 777, 755, etc didn't work for me and probably won't work for you.
I've chatted back and forth with the creator of this app and we've (he) found a workaround. This workaround will make it so it is compiling through your MicroSD rather than the internal memory.
Pre-requisites: You must have BusyBox, SuperUser, C4droid, GCC for C4droid, and a Terminal Emulator installed. You also need a rooted device.
1. Open Terminal emulator and type "su" and press enter. A superuser screen will pop up and you need to click allow.
2. Type the following lines into the terminal (one by one):
3. Change the default compiler in C4droid to G++ + bionic (Root required)
- cd /Removable/MicroSD/
- mkdir Android
- mkdir Android/data
- cp -r /sdcard/Android/data/com.n0n3m4.droidc/ /Removable/MicroSD/Android/data/
- su
- mount -o remount,rw,exec -t vfat /dev/block/vold/179:9 /Removable/MicroSD
- /system/xbin/mount -o bind /Removable/MicroSD/Android/data/com.n0n3m4.droidc/ /sdcard/Android/data/com.n0n3m4.droidc/
4. Done