Click_MCP2517FD_PIC32 has many error

mikroC, mikroBasic and mikroPascal PRO for Microchip’s 32-bit PIC MCUs
Post Reply
Author
Message
kaiting
Posts: 1
Joined: 02 Mar 2018 03:16

Click_MCP2517FD_PIC32 has many error

#1 Post by kaiting » 02 Mar 2018 03:36

Why does the Click_MCP2517FD_PIC32 has many error when I try to compile it?
The errors are:
22 304 error: Can't open include file "__mcp2517fd_driver.h" #include "__MCP2517FD_Driver.h" 1 error in preprocessor. C:\ProgramData\mE\Temp\PM\Click_MCP2517FD_PIC32_mCPIC32_0\Examples\PIC32\MCP2517FD_Click_PIC32.c
0 122 Compilation Started MCP2517FD_Click_PIC32.c
30 402 ; expected, but 'reg' found MCP2517FD_Click_PIC32.c
31 402 ; expected, but 'config' found MCP2517FD_Click_PIC32.c
32 402 ; expected, but 'opMode' found MCP2517FD_Click_PIC32.c
35 402 ; expected, but 'txd' found MCP2517FD_Click_PIC32.c
35 324 Undeclared identifier 'MAX_DATA_BYTES' in expression MCP2517FD_Click_PIC32.c
35 374 Array dimension must be greater than 0 MCP2517FD_Click_PIC32.c
36 402 ; expected, but 'txConfig' found MCP2517FD_Click_PIC32.c
37 402 ; expected, but 'txFlags' found MCP2517FD_Click_PIC32.c
38 402 ; expected, but 'txObj' found MCP2517FD_Click_PIC32.c
41 402 ; expected, but 'rxd' found MCP2517FD_Click_PIC32.c
41 393 'uint8_t' Identifier redefined MCP2517FD_Click_PIC32.c
41 312 Internal error '' MCP2517FD_Click_PIC32.c
0 102 Finished (with errors): 02 Mar 2018, 10:34:27 MCP2517FD_Click_PIC32.mcp32

User avatar
marko.stankovic
mikroElektronika team
Posts: 108
Joined: 18 Dec 2017 15:44

Re: Click_MCP2517FD_PIC32 has many error

#2 Post by marko.stankovic » 06 Mar 2018 09:16

Hi,

Please, can you try to go to compiler Build -> Rebuild All Sources.
Also, you need to include the MCP2517FD library.
After that, try to build example.

Best Regards,
Marko Stankovic.

Post Reply

Return to “PIC32 PRO Compilers”