Buna.
Daca am urmator cod in C, prin care incerc sa deschid un fisier mai mare de 4 GB
folosind tipul off64_t, open64, lseek64
#define __USE_FILE_OFFSET64
#define __USE_LARGEFILE64
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int
main (int argc, char **argv)
{
long fd;
fd=open64("fisier.dat",O_RDWR);
lseek64(fd,offset,SEEK_SET);
return 0;
}
la compilare de gcc -Wall a.c da
a.c: In function `main':
a.c:17: error: `off64_t' undeclared (first use in this function)
a.c:17: error: (Each undeclared identifier is reported only once
a.c:17: error: for each function it appears in.)
a.c:17: error: syntax error before "offset"
a.c:18: warning: implicit declaration of function `open64'
a.c:19: warning: implicit declaration of function `lseek64'
a.c:19: error: `offset' undeclared (first use in this function)
a.c:21:2: warning: no newline at end of file
ce-i il lipseste ?
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
---
Detalii despre listele noastre de mail: http://www.lug.ro/