ThomasBarth / ESP32-CAN-Driver

CAN driver project for the Espressif ESP32
280 stars 77 forks source link

component.mk linker issue #5

Closed Beck-Sisyphus closed 7 years ago

Beck-Sisyphus commented 7 years ago

In the component.mk file contains

COMPONENT_ADD_INCLUDEDIRS := / components/CAN/include COMPONENT_SRCDIRS := / components/CAN components/CAN/cfg

If I keep the := / directory I got this error:

/ESP32-CAN-Driver/main///main.c:102:1: fatal error: opening dependency file /main.d: Permission denied

If I remove the := / directory I got a lot more dependency issues:

ESP32-CAN-Driver/main/components/CAN/include/can_regdef.h:34:1: error: expected identifier or '(' before ')' token )

May I know how to solve it?

wangsuyu commented 7 years ago

Hi,you can change '/' to '.' to solve the problem