问题描述
我正在使用visual studio 2013 和visual micro 作为arduino 编码的插件.如果我在 arduino IDE 中运行我的代码,代码编译得很好,但是当我在 Visual Studio 中编译相同的代码时,它会显示无法解析库包含路径‘SPI’"
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'"
我通过visual micro包含这些库,它显示了所有这些库.所以我想不是我的库目录错了.
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
推荐答案
您似乎忘记在项目属性->vc++ 目录->库(可能是)部分中的库文件夹部分中包含库目录.如果您还没有,也可以在那里添加包含目录.
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.
这篇关于“无法解析库包含路径"视觉工作室(视觉微)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!