gcc – Which compiler does Android NDK use?-ThrowExceptions

Exception or error: I’m writing ARM NEON-based code for an Android application and I was struggling with certain compiler flags not being recognized. I later realized that support for those flags was only added quite recently and that my GCC version is older. I’m doing the whole thing on Windows and am limited by what …

How to compile GCC for android?-ThrowExceptions

Exception or error: Is there any way to compile GCC for android? Basically, have the GCC compiler accessible in an android terminal emulator and able to compile a binary that will run on android from a C or C++ source file. My intention is to use this and eventually install make. How to solve: The …

android – What's the difference in GCC between -std=gnu++0x and -std=c++0x and which one should be used?-ThrowExceptions

Exception or error: I’m having troubles with <stdint.h> when using -std=c++0x in GCC 4.4.3 (for Android): // using -std=c++0x #include <stdint.h> uint64_t value; // error: ‘uint64_t’ does not name a type But using -std=gnu++0x works: // using -std=gnu++0x #include <stdint.h> uint64_t value; // OK Is <stdint.h> incompatible with C++0x? How to solve: So far as …

android – Cross compiling GCC with newlib for ARM: how to specify GCC options like -march?-ThrowExceptions

Exception or error: I’ve compiled GCC along with newlib on Mac OS X for ARM targets. However, libc.a was compiled with -fshort-enums, and I don’t want that because when I compile stuff for ARM, I use -fno-short-enums. This conflicts, of course: ld: warning: /var/folders/9m/2wnjp9zd71x13cpdpf16y_4r0000gn/T//ccQuEnp6.o uses 32-bit enums yet the output is to use variable-size enums; …

Cross compiling static C hello world for Android using arm-linux-gnueabi-gcc-ThrowExceptions

Exception or error: I want to build a static hello world from C using arm-linux-gnueabi-gcc as opposed to using the NDK standalone toolchain or Codesourcery for that matter. In Ubuntu… I have done the following: sudo apt-get install gcc-arm-linux-gnueabi I created a hi.c like this: #include <stdio.h> int main(int argc, char** argv) { printf(“hello world\n”); …

gcc – How to build i686-linux-android-gfortran for android-ndk8b (x86 arch Android)?-ThrowExceptions

Exception or error: I tried building i686-linux-android-gfortran using build-gcc.sh following this (it’s for androdindk-7b) but I get error about link.h. I added link.h from here, but it gives further more errors. Has anyone tried enabling i686-linux-android-gfortran for x86 Android? How to solve: From https://groups.google.com/forum/#!msg/android-ndk/QR1qiN0jIpE/g0MHkhTd4YMJ as selalerer suggested. I didn’t try this, so I’m posting as …

c++ – extern "Java" block in GCC-ThrowExceptions

Exception or error: I found an interesting feature in GCC documentation for C++: java_interface This type attribute informs C++ that the class is a Java interface. It may only be applied to classes declared within an extern “Java” block. Calls to methods declared in this interface will be dispatched using GCJ’s interface table mechanism, instead …

python – How to tell distutils to use gcc?-ThrowExceptions

Exception or error: I want to wrap a test project containing C++ and OpenMP code with Cython, and build it with distutils via a setup.py file. The content of my file looks like this: from distutils.core import setup from distutils.extension import Extension from Cython.Build import cythonize from Cython.Distutils import build_ext modules = [Extension(“Interface”, [“Interface.pyx”, “Parallel.cpp”], …

python – Debugging the error "gcc: error: x86_64-linux-gnu-gcc: No such file or directory"-ThrowExceptions

Exception or error: I’m trying to build: https://github.com/kanzure/nanoengineer But it looks like it errors out on: gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/python2.7 -std=c99 x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -MT libstructcompare_a-structcompare.o -MD -MP -MF .deps/libstructcompare_a-structcompare.Tpo -c -o libstructcompare_a-structcompare.o `test -f ‘structcompare.c’ || echo ‘./’`structcompare.c gcc: error: x86_64-linux-gnu-gcc: No such file or directory …