visual-studio-2017

Setup CMake with SFML in VS2017

寵の児 提交于 2020-12-05 20:37:18
问题 Just like in CLion I want to use SFML with Visual Studio 2017, but I'm still learning cmake and I don't know the commands or the logic of how cmake works at all. I've just seen some posts and got this litle script. Note: I downloaded the latest version of sfml in the link provided, I just taked the extrated directory and put alongside CMakeLists.txt in my folder #sets up the minimum version of cmake cmake_minimum_required(VERSION 3.9) #how the project will be called project (space_impact)

Setup CMake with SFML in VS2017

对着背影说爱祢 提交于 2020-12-05 20:32:50
问题 Just like in CLion I want to use SFML with Visual Studio 2017, but I'm still learning cmake and I don't know the commands or the logic of how cmake works at all. I've just seen some posts and got this litle script. Note: I downloaded the latest version of sfml in the link provided, I just taked the extrated directory and put alongside CMakeLists.txt in my folder #sets up the minimum version of cmake cmake_minimum_required(VERSION 3.9) #how the project will be called project (space_impact)

Is '_HAS_CXX17' marco usable in custom project headers to enable C++17 language set features?

老子叫甜甜 提交于 2020-12-05 07:32:43
问题 I want to create headers which use 'optional' from standard C++. However, My headers will be referred from Visual Studio 2015 as well as Visual Studio 2017 projects. I would like to have something, such that for Visual Studio 2017 ( with C++ 17 lang feature set) , std::optional is used and with Visual Studio 2015, boost::optional gets used. I am thinking of something like this: #include <yvals.h> #if _HAS_CXX17 #include <optional> template <typename T> using Optional = std::optional<T>; #else

Is '_HAS_CXX17' marco usable in custom project headers to enable C++17 language set features?

為{幸葍}努か 提交于 2020-12-05 07:32:09
问题 I want to create headers which use 'optional' from standard C++. However, My headers will be referred from Visual Studio 2015 as well as Visual Studio 2017 projects. I would like to have something, such that for Visual Studio 2017 ( with C++ 17 lang feature set) , std::optional is used and with Visual Studio 2015, boost::optional gets used. I am thinking of something like this: #include <yvals.h> #if _HAS_CXX17 #include <optional> template <typename T> using Optional = std::optional<T>; #else

Visual Studio - Deleting .vs folder

核能气质少年 提交于 2020-12-02 04:57:56
问题 I have a 3gb .vs folder in my C++ project. I am wondering if it is safe to delete the .vs folder. If not what can i do to decrease the volume. Thanks in advance. 回答1: Find a folder called AutoPCH and delete all the files inside. :) 回答2: The .vs folder is generated by Visual Studio and is readily re-created. Sometimes removing .vs is necessary to get a project building again , for example after a Visual Studio update, or opening the solution from a portable drive on a different computer.

How to restore auto_ptr in Visual Studio C++17

隐身守侯 提交于 2020-11-30 11:58:24
问题 This blog page mentions that Visual Studio removes some std features: https://blogs.msdn.microsoft.com/vcblog/2017/12/08/c17-feature-removals-and-deprecations/ I have a project that consumes some C++ libraries that now use C++17 features. The project also consumes a third party library websocketpp (https://github.com/zaphoyd/websocketpp) that still uses some now removed features. eg auto_ptr and binary_function. I'm getting compiler errors that they are not a member of 'std'. The blog above

Python 3.7 + Visual Studio 2107 + boost 1.69

点点圈 提交于 2020-11-29 23:52:50
问题 I am trying to get boost 1.69 working with visual studio 2107. My goal is to use Numpy in C++ When I include #include boost/python/numpy.hpp The error I am getting is: Searching C:\boost_1_69_0\stage\lib\boost_python37-vc141-mt-gd-x32-1_69.lib: 1>LINK : fatal error LNK1104: cannot open file 'boost_numpy37-vc141-mt-gd-x32-1_69.lib' I am pretty sure that I have this file in this directory. My architucture in the project is x86, 32-bit addrressing I built boost as follows: .\bbotstarp.bat .\b2

Python 3.7 + Visual Studio 2107 + boost 1.69

余生长醉 提交于 2020-11-29 23:51:22
问题 I am trying to get boost 1.69 working with visual studio 2107. My goal is to use Numpy in C++ When I include #include boost/python/numpy.hpp The error I am getting is: Searching C:\boost_1_69_0\stage\lib\boost_python37-vc141-mt-gd-x32-1_69.lib: 1>LINK : fatal error LNK1104: cannot open file 'boost_numpy37-vc141-mt-gd-x32-1_69.lib' I am pretty sure that I have this file in this directory. My architucture in the project is x86, 32-bit addrressing I built boost as follows: .\bbotstarp.bat .\b2

Python 3.7 + Visual Studio 2107 + boost 1.69

孤人 提交于 2020-11-29 23:49:57
问题 I am trying to get boost 1.69 working with visual studio 2107. My goal is to use Numpy in C++ When I include #include boost/python/numpy.hpp The error I am getting is: Searching C:\boost_1_69_0\stage\lib\boost_python37-vc141-mt-gd-x32-1_69.lib: 1>LINK : fatal error LNK1104: cannot open file 'boost_numpy37-vc141-mt-gd-x32-1_69.lib' I am pretty sure that I have this file in this directory. My architucture in the project is x86, 32-bit addrressing I built boost as follows: .\bbotstarp.bat .\b2

SSDT Installation for VS2017 Team Explorer Fails

二次信任 提交于 2020-11-29 10:30:50
问题 I am attempting to install SSDT v15.6.0 into an existing Visual Studio Team Explorer 2017 instance. When I run the SSDT installer, I can select Visual Studio Team Explorer 2017 from this list of existing Visual Studio instances. If I do not choose a any options (other than the required SQL Server Database option). The installation completes successfully. If I however attempt to pick any/all of the other options the installation fails. From looking at the log files, it appears that the