阅读:1778回复:0
windriver 8.01 开发 firmware 编译问题!
在windriver8.01 中可以用来开发firmware,我用其生产了一个USB的固件,我已安装了BC3.1,可以正常编译,使用WINDRIVER生成的BUILD.BAT和MAKE文件,能够编译,但是出下了一下的错误:
MAKE Version 3.6 Copyright (c) 1992 Borland International Available memory 15728640 bytes bcc +test.cfg -c main.c d12_ci.c d12_lib.c periph.c wdf_dscr.c Borland C++ Version 3.1 Copyright (c) 1992 Borland International main.c: Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 7: 'D12_MODES' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 12: 'D12_MODES' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 14: 'WDF_ENDPOINTS' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 15: 'WDF_ENDPOINTS' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 16: 'WDF_ENDPOINTS' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 18: 'WDF_ENDPOINTS' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 21: 'DMA_DIRECTION' cannot start a parameter declaration Error main.c 15: Declaration syntax error Error main.c 16: Declaration syntax error Error main.c 17: Declaration syntax error Error main.c 19: Undefined symbol 'EP1_PACKET_SIZE' Error main.c 20: Undefined symbol 'EP2_PACKET_SIZE' Error main.c 51: Declaration syntax error Error main.c 57: Declaration syntax error Error main.c 58: Declaration syntax error Error main.c 85: Undefined symbol 'ControlData' in function main Error main.c 86: Undefined symbol 'devAltSettings' in function main Error main.c 97: Undefined symbol 'ISRflags' in function main Error main.c 125: Undefined symbol 'USB_REQUEST_TYPE_MASK' in function main Error main.c 126: Undefined symbol 'USB_REQUEST_MASK' in function main Error main.c 129: Undefined symbol 'USB_STANDARD_REQUEST' in function main Error main.c 133: Undefined symbol 'USB_VENDOR_REQUEST' in function main Error main.c 133: Duplicate case in function main Error main.c 134: Expression syntax in function main Error main.c 148: Undefined symbol 'WDF_Stat' in function main Error main.c 148: Too many error or warning messages in function main *** 26 errors in Compile *** d12_ci.c: Error d12_ci.c 32: Declaration syntax error Error d12_ci.c 36: Undefined symbol 'ISRflags' in function D12_SetAddressEnable Error d12_ci.c 48: Undefined symbol 'ISRflags' in function D12_SetEndpointEnable Error d12_ci.c 58: Undefined symbol 'ISRflags' in function D12_SetMode Error d12_ci.c 69: Undefined symbol 'ISRflags' in function D12_SetDMA Error d12_ci.c 93: Undefined symbol 'ISRflags' in function D12_SelectEndpoint Error d12_ci.c 113: Undefined symbol 'ISRflags' in function D12_ReadEndpointStatus Error d12_ci.c 125: Undefined symbol 'ISRflags' in function D12_SetEndpointStatus Error d12_ci.c 143: Undefined symbol 'ISRflags' in function D12_ReadCurrentFrameNumber Error d12_ci.c 158: Undefined symbol 'ISRflags' in function D12_ReadEndpoint Error d12_ci.c 191: Undefined symbol 'ISRflags' in function D12_ReadMainEndpoint Error d12_ci.c 223: Undefined symbol 'ISRflags' in function D12_WriteEndpoint *** 12 errors in Compile *** d12_lib.c: Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 7: 'D12_MODES' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 12: 'D12_MODES' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 14: 'WDF_ENDPOINTS' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 15: 'WDF_ENDPOINTS' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 16: 'WDF_ENDPOINTS' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 18: 'WDF_ENDPOINTS' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 21: 'DMA_DIRECTION' cannot start a parameter declaration Error d12_lib.c 12: Declaration syntax error Error d12_lib.c 13: Declaration syntax error Error d12_lib.c 14: Declaration syntax error Error d12_lib.c 27: 'WDF_ENDPOINTS' cannot start a parameter declaration Error d12_lib.c 31: Undefined symbol 'EP1_OUT' in function WDF_EPoutFull Error d12_lib.c 32: Undefined symbol 'WDF_Stat' in function WDF_EPoutFull Error d12_lib.c 33: Undefined symbol 'EP2_OUT' in function WDF_EPoutFull Error d12_lib.c 33: Duplicate case in function WDF_EPoutFull Error d12_lib.c 36: Undefined symbol 'GENERR' in function WDF_EPoutFull Error d12_lib.c 40: 'WDF_ENDPOINTS' cannot start a parameter declaration Error d12_lib.c 44: Undefined symbol 'EP1_IN' in function WDF_EPinFull Error d12_lib.c 45: Undefined symbol 'WDF_Stat' in function WDF_EPinFull Error d12_lib.c 46: Undefined symbol 'EP2_IN' in function WDF_EPinFull Error d12_lib.c 46: Duplicate case in function WDF_EPinFull Error d12_lib.c 49: Undefined symbol 'GENERR' in function WDF_EPinFull Error d12_lib.c 53: 'WDF_ENDPOINTS' cannot start a parameter declaration Error d12_lib.c 57: Undefined symbol 'EP1_IN' in function WDF_EPWrite Error d12_lib.c 58: Undefined symbol 'WDF_Stat' in function WDF_EPWrite Error d12_lib.c 58: Too many error or warning messages in function WDF_EPWrite *** 26 errors in Compile *** periph.c: Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 7: 'D12_MODES' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 12: 'D12_MODES' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 14: 'WDF_ENDPOINTS' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 15: 'WDF_ENDPOINTS' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 16: 'WDF_ENDPOINTS' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 18: 'WDF_ENDPOINTS' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 21: 'DMA_DIRECTION' cannot start a parameter declaration Error periph.c 21: Declaration syntax error Error periph.c 29: Undefined symbol 'MAX_CONTROLDATA_SIZE' Error periph.c 30: Declaration syntax error Error periph.c 32: Declaration syntax error Error periph.c 36: Undefined symbol 'devAltSettings' in function WDF_Init Error periph.c 36: Undefined symbol 'NO_ISO' in function WDF_Init Error periph.c 45: Undefined symbol 'EP1_PACKET_SIZE' in function WDF_Poll Error periph.c 46: Undefined symbol 'EP2_PACKET_SIZE' in function WDF_Poll Error periph.c 50: Undefined symbol 'devAltSettings' in function WDF_Poll Error periph.c 54: Undefined symbol 'EP1_OUT' in function WDF_Poll Error periph.c 61: Undefined symbol 'KEYS0PRESSED' in function WDF_Poll Warning periph.c 63: 'len2' is assigned a value that is never used in function WDF_Poll Warning periph.c 84: Parameter 'bRequest' is never used in function WDF_VendorRequest Warning periph.c 84: Parameter 'wValue' is never used in function WDF_VendorRequest Warning periph.c 84: Parameter 'wIndex' is never used in function WDF_VendorRequest Warning periph.c 84: Parameter 'wLength' is never used in function WDF_VendorRequest Warning periph.c 84: Parameter 'Data' is never used in function WDF_VendorRequest Warning periph.c 84: Parameter 'ppRetData' is never used in function WDF_VendorRequest *** 18 errors in Compile *** wdf_dscr.c: Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 7: 'D12_MODES' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 12: 'D12_MODES' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 14: 'WDF_ENDPOINTS' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 15: 'WDF_ENDPOINTS' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 16: 'WDF_ENDPOINTS' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 18: 'WDF_ENDPOINTS' cannot start a parameter declaration Error D:\Pro\WINDRI~1\wdf\philips\d12\include\d12_lib.h 21: 'DMA_DIRECTION' cannot start a parameter declaration Error wdf_dscr.c 17: Declaration missing ; Error wdf_dscr.c 18: Declaration missing ; Error wdf_dscr.c 19: Declaration missing ; Error wdf_dscr.c 22: Declaration syntax error Error wdf_dscr.c 44: Undefined symbol 'USB_CONFIGURATION_DESCRIPTOR' Error wdf_dscr.c 44: Not an allowed type Error wdf_dscr.c 45: Undefined symbol 'USB_CONFIGURATION_DESCRIPTOR_TYP' Error wdf_dscr.c 46: Declaration terminated incorrectly Error wdf_dscr.c 73: Unexpected } Error wdf_dscr.c 80: Undefined symbol 'USB_STRING_DESCRIPTOR_TYPE' Error wdf_dscr.c 80: Declaration terminated incorrectly Error wdf_dscr.c 80: Unexpected } Error wdf_dscr.c 87: Illegal initialization Error wdf_dscr.c 95: Illegal initialization *** 21 errors in Compile *** Available memory 4132316 不知道是什么原因,我都是使用的默认的选项,不知道应该怎么解决,请大虾们帮助一下,谢谢 windriver8.01用的是破解版. |
|