hi, Diluka Moratuwage:
i'v run posix c/c++ program under android platform.
if you want to compile c/c++ source for android, you can check the
following links:
http://www.codesourcery.com/gnu_toolchains/arm/download.html
here, you can download the toolchains(select ARM GNU/Linux target, and
the platform both dos or linux are all right).
compile commands looked like this:
$ arm-none-linux-gnueabi-gcc -static hello.c -o hello
copy the binary into the emulator:
$ adb push hello/hello data/hello
try to run it manually:
$adb shell data/hello
Hello, Android!
you can remove the app under the shell:
#cd data
#rm hello
Diluka Moratuwage wrote:
Hi all,
I'm curios about the value (name) of the system, that the compiler
is using
when building C applications for android. For example, the compiler for
windoes, uses WIN32 to specify that the compiling program is for windoes,
and so on. (HPUX, as400). So that, inside include files, I need to
include system
specific header files. Anybody has any ideas ? Thank you.
Thanks,
Diluka.