|
[root@localhost arm]# arm-elf-gcc -Wl,-elf2flt -o adc adc.c
In file included from /usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/linux/sched.h:14,
from adc.c:5:
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/linux/sched.h:18,
from adc.c:5:
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/asm/semaphore.h:18: parse error before `wait_queue_head_t'
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/asm/semaphore.h:18: warning: no semicolon at end of struct or union
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/asm/semaphore.h: In function `sema_init':
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/asm/semaphore.h:47: dereferencing pointer to incomplete type
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/asm/semaphore.h:48: dereferencing pointer to incomplete type
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/asm/semaphore.h:49: dereferencing pointer to incomplete type
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/asm/semaphore.h: In function `sem_getcount':
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/asm/semaphore.h:130: dereferencing pointer to incomplete type
adc.c: At top level:
adc.c:24: variable `adc_fops' has initializer but incomplete type
adc.c:25: warning: excess elements in struct initializer
adc.c:25: warning: (near initialization for `adc_fops')
adc.c:26: warning: excess elements in struct initializer
adc.c:26: warning: (near initialization for `adc_fops')
adc.c:27: warning: excess elements in struct initializer
adc.c:27: warning: (near initialization for `adc_fops')
adc.c:28: warning: excess elements in struct initializer
adc.c:28: warning: (near initialization for `adc_fops')
adc.c:29: warning: excess elements in struct initializer
adc.c:29: warning: (near initialization for `adc_fops')
adc.c:30: warning: excess elements in struct initializer
adc.c:30: warning: (near initialization for `adc_fops')
adc.c:31: warning: excess elements in struct initializer
adc.c:31: warning: (near initialization for `adc_fops')
adc.c:32: warning: excess elements in struct initializer
adc.c:32: warning: (near initialization for `adc_fops')
adc.c:33: warning: excess elements in struct initializer
adc.c:33: warning: (near initialization for `adc_fops')
adc.c:34: warning: excess elements in struct initializer
adc.c:34: warning: (near initialization for `adc_fops')
adc.c:35: warning: excess elements in struct initializer
adc.c:35: warning: (near initialization for `adc_fops')
adc.c:36: warning: excess elements in struct initializer
adc.c:36: warning: (near initialization for `adc_fops')
adc.c:37: warning: excess elements in struct initializer
adc.c:37: warning: (near initialization for `adc_fops')
调试中竟然出现那么多的错误,有哪位大侠可以帮忙吗?感谢不尽!!!! |
|