简体   繁体   中英

visual studio 2017 linux c++ librt

I've read, I can use Visual Studio 2017 on Windows to develop C++ application with remotely debugging on a Linux machine. I like this idea because I'm familiair with VS2017 for C# on Windows applications.

For my new study, I need to develop on Linux but for example must develope applications which use shared memory via Posix. So I need to include the LIBRT library. But this one is specific for Linux, so if I need to use such kind of specific linux library's, could I then also use this VS2017 setup?

If how, how does that work because I did not find any information about it. Thx

I encountered the same obstacle but for libcurl. What fixed it was adding gcc arguments in the Visual Studio linker. Right click the project and pick Properties->Linker->All Optptions->Additional Options and add the same parameter you would give to g++, in my case -lcurl . I have also tested it for -pthread .

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM