询问者
vs2015 for linux c++如何创建?使用static library?

问题
全部回复
-
hello, if i want to link library file under linux (such as : libprotobuf.a), how to link? copy to the windows from the linux?
1 year ago
Reply
Marc Goodner - MSFT
Look at the desktop section in the post, it describes this using opengl as an example. Basically you need to get the headers locally for intellisense, specify their location in the project properties, and specify the libraries you are using on the linker input project properties . -
我把流程寫在下面,你嘗試看看:
下载 Visual C++ for Linux Development extension 或从 Visual Studio 上的插件管理员来获得。
https://marketplace.visualstudio.com/items?itemName=VisualCPPTeam.VisualCforLinuxDevelopment
-
在 remote settings 下,你可以看到 remote 根目录是预设在 ~/projects/ ,且该路径下的远端专案目录会与我们的专案名称相符。从 Linux 机器上去看的话,我们可以在 ~/projects/ConsoleApplication1 下发现建构后的成品 main.cpp。
根据专案的 General setting,可以了解到我们针对 Output 以及 Intermediate 路径是怎么设定的。除此之外,你可以发现到这个专案是被设定成一个应用程式的 — 代表我们的专案执行档 ConsoleApplication1.out 是在 bin/x64/Debug/ 路径下。另外可以注意到的是,我们也同时支援静态以及动态的设定格式。- 已编辑 電腦神手吳子陵 2017年9月4日 8:18
-
@marks_han,
有更新么?如果電腦神手吳子陵的回复已经解决了你的问题的话别忘了给他标记一下,这样论坛上的回答可以帮到其他想要找类似答案的人。
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.