在c中编译文件时出错

时间:2014-04-20 16:23:17

标签: c file compiler-errors

在尝试编译时,我一直将此视为错误。是什么导致了这个错误?我该如何解决?

致命错误LNK1107:文件无效或损坏:无法读取0x390

#ifndef DEFS_H
#define DEFS_H


// a structure that contains field widths
typedef struct {
    int * fieldWidths; // a pointer to an array of bit field widths (in bits)
    int numWidths;     // the number of elements in the array (i.e., the number of bit    fields)
} sizes;


// a structure that contains an array of ints containing packed data fields
typedef struct {
    int * fieldValues; // a pointer to an array of ints containing packed bit fields
    int n;             // the number of elements in the array
} packed;


// a structure that contains an array of ints containing individual data values (one per int)
typedef struct {
    int * values; // a pointer to an array of ints containing values for bit fields    (one per element)
    int n; // the number of elements in the array
} unpacked;


packed pack(sizes s, unpacked un);
unpacked unpack(sizes s, packed p);


#endif

0 个答案:

没有答案