LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   crcman.c: In function `ProcessAllFiles': crcman.c:295: storage size of `fileinfo' isn (https://www.linuxquestions.org/questions/programming-9/crcman-c-in-function-%60processallfiles-crcman-c-295-storage-size-of-%60fileinfo-isn-444937/)

cynthia_thomas 05-15-2006 05:38 AM

crcman.c: In function `ProcessAllFiles': crcman.c:295: storage size of `fileinfo' isn
 
hi all,

i downloaded a file program for file verification using CRC check.
It is not compiling . These are the compilation errore.

[root@CORE-2-02 root]# gcc crcman.c
crcman.c: In function `ProcessAllFiles':
crcman.c:295: storage size of `fileinfo' isn't known
crcman.c:315: `_A_SUBDIR' undeclared (first use in this function)
crcman.c:315: (Each undeclared identifier is reported only once
crcman.c:315: for each function it appears in.)


the site is

http://www.dogma.net/markn/articles/crcman/crcman.htm


Can anybody help me regarding this??

thanks and regards
cynthia thomas

Wim Sturkenboom 05-15-2006 06:59 AM

Quote:

Originally Posted by cynthia_thomas
Code:

crcman.c:295: storage size of `fileinfo' isn't known

It looks like you're compiling for DOS. The same mighgt apply to the other errors; did not check.
Code:

#ifdef UNIX
    DIR *dirp;
    #ifdef M_XENIX
        struct direct *entry;
    #else
        struct dirent *entry;
    #endif /* M_XENIX */
    #define NAME entry->d_name
#else
    FILE_INFO fileinfo;
    int done;
    #define NAME FILE_NAME( fileinfo )

    ...
    ...
#endif

I've made the indentations a bit more clear so it's easier to follow.


All times are GMT -5. The time now is 06:23 AM.