xianting77 / rt-thread

Automatically exported from code.google.com/p/rt-thread
GNU General Public License v2.0
0 stars 0 forks source link

Revision 795 STM32 project in RVMDK can't build through #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Error information:

compiling dfs_elm.c...
..\..\components\dfs\filesystems\elmfat\dfs_elm.c(574): error:  #70: incomplete 
type is not allowed
..\..\components\dfs\filesystems\elmfat\dfs_elm.c:              struct 
rt_device_blk_geometry geometry;
..\..\components\dfs\filesystems\elmfat\dfs_elm.c:                              
              ^
..\..\components\dfs\filesystems\elmfat\dfs_elm.c(583): error:  #70: incomplete 
type is not allowed
..\..\components\dfs\filesystems\elmfat\dfs_elm.c:              struct 
rt_device_blk_geometry geometry;
..\..\components\dfs\filesystems\elmfat\dfs_elm.c:                              
              ^
..\..\components\dfs\filesystems\elmfat\dfs_elm.c(592): error:  #70: incomplete 
type is not allowed
..\..\components\dfs\filesystems\elmfat\dfs_elm.c:              struct 
rt_device_blk_geometry geometry;
..\..\components\dfs\filesystems\elmfat\dfs_elm.c:                              
              ^
..\..\components\dfs\filesystems\elmfat\dfs_elm.c: 
..\..\components\dfs\filesystems\elmfat\dfs_elm.c: 0 warnings, 3 errors

compiling sdcard.c...
sdcard.c(3150): error:  #393: pointer to incomplete class type is not allowed
sdcard.c:           geometry->bytes_per_sector = 512;
sdcard.c:           ^
sdcard.c(3151): error:  #393: pointer to incomplete class type is not allowed
sdcard.c:           geometry->block_size = SDCardInfo.CardBlockSize;
sdcard.c:           ^
sdcard.c(3153): error:  #393: pointer to incomplete class type is not allowed
sdcard.c:                       geometry->sector_count = 
(SDCardInfo.SD_csd.DeviceSize + 1)  * 1024;
sdcard.c:                       ^
sdcard.c(3155): error:  #393: pointer to incomplete class type is not allowed
sdcard.c:               geometry->sector_count = 
SDCardInfo.CardCapacity/SDCardInfo.CardBlockSize;
sdcard.c:               ^
sdcard.c: sdcard.c: 0 warnings, 4 errors

What version of the product are you using? On what operating system?
WinXP
RVMDK 4.12

Please provide any additional information below.
I read the source code can't find a mistake...
Wish a nice fix.

Original issue reported on code.google.com by xuli...@gmail.com on 17 Jul 2010 at 7:28

GoogleCodeExporter commented 9 years ago
Which project are you using?

"What version of the product are you using?" should be the version of 
RT-Thread, and the specific BSP project.

Original comment by Kyle.Hu.GZ@gmail.com on 2 Sep 2010 at 4:33