#160233 - ferrand.d - Sat Jul 12, 2008 1:11 pm
Hi everybody !
I'm french so please excuse me for my bad english. I'm trying to compile a project which uses libfat, but this is a very old project, so I think many things have changed in two years.
The error I get is
And my (simplified) source code is
Actually, I don't know where does the DIR_ITER come from and even trying to compile the example code given by chishm on his website, I got that error !
I think the error comes from the header sys/dir.h, but I didn't really understand the POSIX/non-POSIX point.
I'm totally lost so please help me !
I'm french so please excuse me for my bad english. I'm trying to compile a project which uses libfat, but this is a very old project, so I think many things have changed in two years.
The error I get is
Quote: |
error: 'DIR_ITER' undeclared (first use in this function)
error: (Each undeclared identifier is reported only once error: for each function it appears in.) error: 'd' undeclared (first use in this function) |
And my (simplified) source code is
Code: |
#include <nds.h>
#include <fat.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/dir.h> // ... DIR_ITER* d; |
Actually, I don't know where does the DIR_ITER come from and even trying to compile the example code given by chishm on his website, I got that error !
I think the error comes from the header sys/dir.h, but I didn't really understand the POSIX/non-POSIX point.
I'm totally lost so please help me !