LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-29-2011, 09:13 AM   #1
pillisrikanth
LQ Newbie
 
Registered: May 2011
Location: india,andhrapradesh,guntur
Posts: 29
Blog Entries: 3

Rep: Reputation: 0
Thumbs down how to run a.out in arm9 cortex-a9 processor


Hi the following is my c code

#include<stdio.h>
#include<stdlib.h>
#include<sys/types.h>
int main()
{
int pilli;
pilli=system("/usr/bin/ls");

}

by using ARM cross compiler(Uclibc) with command

arm-linux-gnueabi-gcc system.c

i got a.out, it is copied to Sample

After type sample console, it gives the "-sh" not found.
so please help what i will do?
sorry for my bad english


thanks

srikanthpilli
 
Old 11-30-2011, 07:35 AM   #2
clvic
Member
 
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

Rep: Reputation: 45
Maybe in that system a.out executables are not allowed...
so try compiling with the "-o" option:
Code:
arm-linux-gnueabi-gcc -o system system.c
and then try running
Code:
./system
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: $5 Cortex-A8 SoC aims to take on ARM9 in the embedded market LXer Syndicated Linux News 0 11-01-2011 02:41 PM
LXer: SoC teams Cortex-A5 app processor with Cortex-M4 MCU LXer Syndicated Linux News 0 10-26-2011 06:31 AM
LXer: Pandigital launches $159 Android tablet with Cortex-A9 processor LXer Syndicated Linux News 0 08-05-2011 04:00 AM
how to install classpath-0.98 in arm9 cortex pillisrikanth Linux - Newbie 0 05-05-2011 07:09 AM
To develop project based on ARM Cortex-M3 processor kennyfly899 Linux - Newbie 3 11-02-2009 01:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration