public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] FILE I/O in LEON3 ECOS Port Question
@ 2009-09-02 21:40 mishrad
  0 siblings, 0 replies; only message in thread
From: mishrad @ 2009-09-02 21:40 UTC (permalink / raw)
  To: ecos-discuss

Hi,

I am trying to run a simple file I/O program on TSIM after ECOS targetting.

Command line for compilation and linking ->

sparc-elf-g+ + -g -nostdlib -Ttarget.ld -msoft-float -I ./install/include
-L./install/ lib -o test dummy.c

#include <stdio.h>
int main()
{
FILE *f;
f = fopen("test. jpg", "w");
if(!f) printf("Cannot open file\n");
fprintf(f, "hi");
}

It shows, cannot open file when I run it on TSIM.

How to run an application with File I/O on ECOS Leon3 port?

Thanks and Regards,
Deepak


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-02 21:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-02 21:40 [ECOS] FILE I/O in LEON3 ECOS Port Question mishrad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).