--- Quote Start ---
You've pasted code that has had its quotes changed.
--- Quote End ---
I've also used another example which had some quotes changed:
int main() // Load and read back filter coefficients two times
{
FILE * hostfile = fopen("/mnt/host/hello_hostfs.txt", "w");
char buffer[1024];
while (fgets(buffer,
sizeof(buffer), hostfile) !=
null)
{
fprintf(stdout, "%s", buffer);
}
fclose(hostfile);
printf("That's all folks\n");
and I get error messages such as:
Compiling topavalon.c...
../topavalon.c: In function `main':
../topavalon.c:73: warning: implicit declaration of function `floor'
Linking epuisant.elf...
obj/topavalon.o(.text+0x24): In function `main':
../topavalon.c:33: undefined reference to `fopen'
obj/topavalon.o(.text+0x38):../topavalon.c:35: undefined reference to `fgets'
obj/topavalon.o(.text+0x64):../topavalon.c:39: undefined reference to `fclose'
collect2: ld returned 1 exit status
make: *** [epuisant.elf] Error 1
Build completed in 14.0 seconds
The only things I've changed in the code ist that I want to read data from a txt file, coz the original code was a C one. I've inserted a the hello_hostfs.txt in the project folder and have the mount name mnt/host. So what could be the problem?
Thanks