gcc meet problem with "stat" function
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Fri Apr 28 23:02:00 GMT 2000
> having already checked the stat.h and types.h ,I'm still confused
> about this
> my system info:
> solaris 2.6
> SMCgcc 2.95.2
Unfortunately, I cannot help, because I cannot reproduce the problem
here. When I compile
#include <sys/stat.h>
typedef unsigned u_int32_t;
int main(){
struct stat sb;
u_int32_t tmp; /* u_int32_t is a 16_bit user_defined variable */
if (stat("./market.dat",&sb))
return (__os_get_errno());
tmp=(u_int32_t)(sb.st_ino);
}
gcc 2.95.2 compiles it just fine on Solaris 2.6. Can you please try to
compile this exact program, and see whether the error still occurs?
You left out a lot of details, such as the exact source code you are
using, which makes it difficult to help you.
Regards,
Martin
More information about the Gcc-help
mailing list