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