如何在VS2017 VC ++ for Linux项目中链接libgattlib.so

我尝试使用驻留在Raspberry Pi 3板中的libgattlib.so静态库在VS2017(来自我的PC)中构建VC ++ for Linux(Raspbian)项目。 编译没有错误。 我可以使用例如\\ usr \ include可靠地包含在项目.h文件中。 我还需要一个libgattlib.so库文件的引用。 它位于Raspberry Pi 3上的/ usr / lib中,并且在VS2017 项目 – >配置属性 – > VC ++目录 – >库目录中设置了正确的链接( \\ usr \ lib ),并在项目 – >配置属性中设置了-lgattlib- > Linker-> Input-> Library Dependencies但链接器报告错误:

目标链接:

1> Linking objects 1> Invoking 'ld' 1> g++ -o "/home/pi/projects/Id2Monitor_For_Linux/bin/ARM/Debug/Id2Monitor_For_Linux.out" -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack /home/pi/projects/Id2Monitor_For_Linux/obj/ARM/Debug/main.o -lbluetooth -llibgattlib 1> /usr/bin/ld: cannot find -llibgattlib 1> /usr/bin/ld: cannot find -llibgattlib 1> collect2: error: ld returned 1 exit status 1> collect2: error: ld returned 1 exit status 1> /usr/bin/ld: cannot find -llibgattlib 1> collect2: error: ld returned 1 exit status 1> collect2 : error : ld returned 1 exit status 1> Done linking, output file name: '/home/pi/projects/Id2Monitor_For_Linux/bin/ARM/Debug/Id2Monitor_For_Linux.out' 1>Done building target "Link" in project "Id2Monitor_For_Linux.vcxproj" -- FAILED. 1> 1>Done building project "Id2Monitor_For_Linux.vcxproj" -- FAILED. 1> 1>Build FAILED. 1> 1>collect2 : error : ld returned 1 exit status 1> 0 Warning(s) 1> 1 Error(s) 

请告诉我如何在VS2017中正确设置libgattlib.so库的引用。 谢谢。