This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FILE I/O in LEON3 ECOS Port Question


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]