Apr 30, 2017 - The Quick Start includes use Visual Studio Code to build C++ code with. Assume there are CMakeLists.txt files in QuickStart Project, and the. I'd like to ask how to include boost hpp files in cross platform Linux project. I am developing on Windows and compiling remotely on Linux with VS 2017. For IntelliSense the C++ header files from Linux are automatically copied to Windows machine. • Is it the case with boost hpp files also? How is it in a case when boost is just extracted from a package on Linux and not installed by apt-get. Zapf chancery italic. • Do I need to install boost on Windows also? • How to refer to hpp files so that both VS IDE and g++ would find the files? I have to figure out how to make it work, so I post it here if someone else needs a help: • To make IntelliSense work, the boost has to be on Windows. The VS can not be instructed to download additional include files from Linux. What it downloads from Linux is not user configurable in VS 2017, so we have to install or download boost files on Windows manually. • Add the path to VS in Configuration Properties->C/C++->General->Additional Include Diractories. For example $(ProjectDir)././boost_1_68_0/; • Add path to boost which is on Linux machine. For example: /usr/local/boost_1_68_0/; • Now you should be able to compile VS solution and IntelliSense should work. If someone knows how to avoid installation of boost on Windows and use only boost installation on Linux, please let me know. I don't understand why VS does not allow to manually specify additional includes for a download.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |