Why are you trying to execute a C program using SH? That's not going to work, ensure that the /sdcard/hello has the execute permission set, if not, do "chmod 755 /sdcard/hello" and then execute it just as "/sdcard/hello"..
Regards -- Ashwin 2010/5/25 Rogério de Souza Moraes <[email protected]>: > Hi Akhilesh, > > Post the code that is in the hello.c, it make easier to help you. You can > try to compile the program statically: > > agcc hello.c -static -o hello > > In this way you avoid to have wrong library links. > > Regards, > > Rogerio > > 2010/5/25 akhilesh kumar <[email protected]> >> >> Hi All, >> >> I have compiled my simple "hello world" application from android arm tool >> chain (mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin) >> >> $ agcc hello.c -o hello >> >> Now I am trying to run hello world application on android emulator form >> using sdcard mount . >> and I am getting the following error >> >> # sh /sdcard/hello >> /sdcard/hello: 1: Syntax error: word unexpected (expecting ")") >> >> please guide me how to resolve this problem. >> -- >> Thanks, >> Akhilesh >> >> -- >> unsubscribe: [email protected] >> website: http://groups.google.com/group/android-porting > > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-porting > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
