“Unable to resolve library include path” visual st

2019-09-08 15:30发布

问题:

I'm using visual studio 2013 and visual micro as add ones for arduino coding. If I run my code in arduino IDE ,code compiles fine but when I compile the same code in visual studio , it says "Unable to resolve library include path 'SPI'"

I include those libraries via visual micro and it shows all of them. So I guess it's not that my library directory is wrong.

How can I solve this problem ? what may be the reason for this? thanks

回答1:

It seems you forgot to include Library directories to library folder section in project properties->vc++ directories->libraries(may be) section. And also add include directories there too if you haven't.