Release build of project `D:\Yanfa\read-eerom\Software\usb\MCC18 USB\HID.mcp' started.
Language tool versions: mplink.exe v9.80, mcc18.exe v9.80, mplib.exe v9.80
Wed Aug 10 23:06:59 2016
----------------------------------------------------------------------
Make: The target "F:\MAPLIBCXBC\MCC18 USB\main.o" is out of date.
Executing: "C:\Program Files (x86)\Microchip\xc8\v1.32\bin\mcc18.exe" -p=18F4550 /i"D:\MCC18\h" "main.c" -fo="F:\MAPLIBCXBC\MCC18 USB\main.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
USB data.h:
242: const unsigned char *rom USB_CD_Ptr[]={&cfg01,&cfg01};
^ (359) illegal conversion between pointer types (warning)
pointer to rom struct S632 -> pointer to const unsigned char
(359) illegal conversion between pointer types ^ (warning)
pointer to rom struct S632 -> pointer to const unsigned char
243: const unsigned char *rom USB_SD_Ptr[]={&sd000,&sd001,&sd002};
^ (359) illegal conversion between pointer types (warning)
pointer to rom struct S633 -> pointer to const unsigned char
(359) illegal conversion between pointer types ^ (warning)
pointer to rom struct S634 -> pointer to const unsigned char
(359) illegal conversion between pointer types ^ (warning)
pointer to rom struct S635 -> pointer to const unsigned char
main.c: USBCtrlTrfSetupHandler()
365: wCount._word = 0;
^ (196) struct/union required
main.c: USBCtrlEPServiceComplete()
446: if(SetupPkt.wLength < wCount._word)
(196) struct/union required ^
447: wCount._word = SetupPkt.wLength;
^ (196) struct/union required
main.c: USBCtrlTrfTxService()
484: if(wCount._word < 8)
^ (196) struct/union required
485: byte_to_send._word = wCount._word;
^ (196) struct/union required
(196) struct/union required ^
487: byte_to_send._word = 8;
^ (196) struct/union required
494: ep0Bi.Stat._byte |= ((byte_to_send).v[1]);
(196) struct/union required ^
(981) pointer required ^
(981) pointer required ^
495: ep0Bi.Cnt = ((byte_to_send).v[0]);
(196) struct/union required ^
(981) pointer required ^
(981) pointer required ^
497: wCount._word = wCount._word - byte_to_send._word;
^ (196) struct/union required
^ (196) struct/union required
(196) struct/union required ^
503: while(byte_to_send._word)
^ (196) struct/union required
508: byte_to_send._word--;
^ (196) struct/union required
513: while(byte_to_send._word)
^ (196) struct/union required
518: byte_to_send._word--;
^ (196) struct/union required
main.c: USBCtrlTrfRxService()
530: ((byte_to_read).v[1]) = 0x03 & ep0Bo.Stat._byte;
^ (196) struct/union required
main.c: 530: too many errors (21)
(908) exit status = 1
(908) exit status = 1
Halting build on first failure as requested.
----------------------------------------------------------------------
Release build of project `D:\Yanfa\read-eerom\Software\usb\MCC18 USB\HID.mcp' failed.
Language tool versions: mplink.exe v9.80, mcc18.exe v9.80, mplib.exe v9.80
Wed Aug 10 23:07:00 2016
----------------------------------------------------------------------
BUILD FAILED
各位大神麻烦给我看一下,我在用pic18f2455的usb接口与pc通信,代码在网上找的,用的c18 c编译器 死活编译不通过
|