Board logo

标题: 在cyclone II starter Board上编译uc/FS文件系统出现问题? [打印本页]

作者: significant    时间: 2007-4-26 15:43     标题: 在cyclone II starter Board上编译uc/FS文件系统出现问题?

我用Nios IDE 6.0编译uc/FS,把所有的文件系统源代码都放在当前工程目录下,但是有如下错误:


**** Incremental build of configuration Debug for project software ****

make -s all
Compiling api_dir.c...
In file included from ../fs_int.h:27,
                 from ../fs_dev.h:24,
                 from ../api_dir.c:33:
../fs_fsl.h:36: error: parse error before "FS_FILE"
../fs_fsl.h:36: warning: no semicolon at end of struct or union
../fs_fsl.h:37: error: parse error before '*' token
../fs_fsl.h:38: error: parse error before "FS_FILE"
../fs_fsl.h:39: error: parse error before "FS_FILE"
../fs_fsl.h:40: error: parse error before '*' token
../fs_fsl.h:41: error: parse error before '*' token
../fs_fsl.h:44: error: parse error before '*' token
../fs_fsl.h:44: error: parse error before "FS_DIR"
../fs_fsl.h:44: warning: type defaults to `int' in declaration of `fsl_opendir'
../fs_fsl.h:44: warning: data definition has no type or storage class
../fs_fsl.h:45: error: parse error before '*' token
../fs_fsl.h:46: error: parse error before '*' token
../fs_fsl.h:47: error: parse error before '*' token
../fs_fsl.h:51: error: parse error before '}' token
../fs_fsl.h:51: warning: type defaults to `int' in declaration of `FS__fsl_type'
../fs_fsl.h:51: warning: data definition has no type or storage class
In file included from ../fs_dev.h:24,
                 from ../api_dir.c:33:
../fs_int.h:59: warning: type defaults to `int' in declaration of `FS__fsl_type'
../fs_int.h:59: warning: no semicolon at end of struct or union
../fs_int.h:59: error: parse error before '*' token
../fs_int.h:60: error: parse error before '*' token
../fs_int.h:60: warning: type defaults to `int' in declaration of `devdriver'
../fs_int.h:60: warning: data definition has no type or storage class
../fs_int.h:65: error: parse error before '}' token
../fs_int.h:65: warning: type defaults to `int' in declaration of `FS__devinfo_type'
../fs_int.h:65: warning: data definition has no type or storage class
../fs_int.h:76: error: parse error before '*' token
../fs_int.h:76: warning: type defaults to `int' in declaration of `FS__pDevInfo'
../fs_int.h:76: warning: data definition has no type or storage class
In file included from ../api_dir.c:33:
../fs_dev.h:64: error: parse error before "FS__ramdevice_driver"
../fs_dev.h:64: warning: type defaults to `int' in declaration of `FS__ramdevice_driver'
../fs_dev.h:64: warning: data definition has no type or storage class
../fs_dev.h:65: error: parse error before "FS__windrive_driver"
../fs_dev.h:65: warning: type defaults to `int' in declaration of `FS__windrive_driver'
../fs_dev.h:65: warning: data definition has no type or storage class
../fs_dev.h:66: error: parse error before "FS__smcdevice_driver"
../fs_dev.h:66: warning: type defaults to `int' in declaration of `FS__smcdevice_driver'
../fs_dev.h:66: warning: data definition has no type or storage class
../fs_dev.h:67: error: parse error before "FS__mmcdevice_driver"
../fs_dev.h:67: warning: type defaults to `int' in declaration of `FS__mmcdevice_driver'
../fs_dev.h:67: warning: data definition has no type or storage class
../fs_dev.h:68: error: parse error before "FS__idedevice_driver"
../fs_dev.h:68: warning: type defaults to `int' in declaration of `FS__idedevice_driver'
../fs_dev.h:68: warning: data definition has no type or storage class
../fs_dev.h:69: error: parse error before "FS__flashdevice_driver"
../fs_dev.h:69: warning: type defaults to `int' in declaration of `FS__flashdevice_driver'
../fs_dev.h:69: warning: data definition has no type or storage class
../fs_dev.h:70: error: parse error before "FS__SFlash_Driver"
../fs_dev.h:70: warning: type defaults to `int' in declaration of `FS__SFlash_Driver'
../fs_dev.h:70: warning: data definition has no type or storage class
../fs_dev.h:71: error: parse error before "FS__genericdevice_driver"
../fs_dev.h:71: warning: type defaults to `int' in declaration of `FS__genericdevice_driver'
../fs_dev.h:71: warning: data definition has no type or storage class
../fs_dev.h:72: error: parse error before "FS__NAND2K_Driver"
../fs_dev.h:72: warning: type defaults to `int' in declaration of `FS__NAND2K_Driver'
../fs_dev.h:72: warning: data definition has no type or storage class
In file included from ../api_dir.c:34:
../fs_api.h:125:1: warning: "FS_DIRNAME_MAX" redefined
In file included from ../fs_dev.h:23,
                 from ../api_dir.c:33:
../FS_ConfDefaults.h:313:1: warning: this is the location of the previous definition
In file included from ../api_dir.c:35:
../fs_os.h:33: warning: type defaults to `int' in declaration of `FS__device_type'
../fs_os.h:33: error: parse error before '*' token
../fs_os.h:34: warning: type defaults to `int' in declaration of `FS__device_type'
../fs_os.h:34: error: parse error before '*' token
../api_dir.c: In function `FS_OpenDir':
../api_dir.c:87: error: request for member `fs_ptr' in something not a structure or union
../api_dir.c:103: error: request for member `fs_ptr' in something not a structure or union
../api_dir.c: In function `FS_CloseDir':
../api_dir.c:142: error: request for member `fs_ptr' in something not a structure or union
../api_dir.c:144: error: request for member `fs_ptr' in something not a structure or union
../api_dir.c: In function `FS_ReadDir':
../api_dir.c:177: error: request for member `fs_ptr' in something not a structure or union
../api_dir.c:179: error: request for member `fs_ptr' in something not a structure or union
../api_dir.c: In function `FS_MkDir':
../api_dir.c:235: error: request for member `fs_ptr' in something not a structure or union
../api_dir.c:238: error: request for member `fs_ptr' in something not a structure or union
../api_dir.c: In function `FS_RmDir':
../api_dir.c:298: error: request for member `fs_ptr' in something not a structure or union
../api_dir.c:301: error: request for member `fs_ptr' in something not a structure or union
make: *** [obj/api_dir.o] Error 1
Build completed






欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0