LNK1104 cannot open file boost_thread-vc140-mt-gd-1_61.lib - c++

I am using Microsoft Visual Studio Professional 2017, Version 15.9.25
Visual C++ 2017 - 00369-60000-00001-AA984
ASP.NET and Web Tools 2017 - 15.9.04012.0
ASP.NET Core Razor Language Services - 15.8.31590
ASP.NET Web Frameworks and Tools 2017 - 5.2.61435.0
When I compile the project I'm getting:
1>LINK : fatal error LNK1104: cannot open file 'boost_thread-vc140-mt-gd-1_61.lib'
I've searched all the files in the Project folder and I can see no reference to this file, I am using Boost 1.61 and all I can see in the boost folder is:
c:\boost\boost_1_61_0\stage\lib\boost_thread-vc120-mt-1_61.lib
How do I change the project settings to get it to use the correct file?

Open the project properties, right click Project in Solution Explorer
From the Configuration Properties click on the Platform Toolset and change the setting to Visual Studio 2013 (v120)
Click on the OK button.
Clean project and rebuild.

Related

WIN32 project - 'LNK1104 : cannot openmfc140d.lib' when I compile a project in my solution

I used Visual Studio 2019. I've a WIN32 project. For this project, I used the Nuget manager to install Microsoft.Web.WebView2 (version 1.0.902.49) and Microsoft.Windows.ImplementationLibrary (version 1.0.210803.1) and in the project properties, here is the configuration :
Since I changed the property "Platform Toolset" from Visual Studio 2015 to Visual Studio 2019, I've an error at the compil : 'cannot open file mfc140d.lib'. I don't need MFC for this project. So, in the configuration of the linker, I decided to add in "Ignore Specific Default Libraries" the mfc140d.lib. And then, I tried to compil again but I got another error compil with another MFC dll.
Why do I get all those error message ? Why do I need MFC ? Can you explain what have I to do ?
Thank you
I've tried to uninstall the two packages Microsoft.Web.WebView2 and Microsoft.Windows.ImplementationLibrary and then, compil again but I've always got the same error message

Visual Studio 2017 Build Configuration Missing

I have Visual Studio 2017 Community 15.7.2 installed. The build configuration drop down options disappear. I have been having Problems with the build configuration disappearing on my work machine (Visual Studio 2017 Enterprise 15.8.2) as well.
If I create a new project File -> New Project -> Web -> ASP.Net Web Application (.Net Framework).
The build configuration option shows up. Then if I click on a controller class e.g. HomeController.cs. The option clears out.
The option will show up again after changing "Show output from" under the Output window. If I bring up a .cs file again. The build option disappears:
Is this now a normal behavior in Visual Studio? I suspect a bug in Visual Studio and have been updating more often than usual in attempt to fix it.
The latest update to Visual Studio Community 2017 (15.8.4) did not fix the problem.
Go through each of the Tools -> Extensions and Updates and disable an extension and then restart Visual Studio. Start with ones that aren't created by Microsoft.
Repeat this until you have tried all the extensions.

Using UE4 with Visual Studio 2017

I recently did some cleaning of my drives. I decided to install visual studio 2017 after cleaning the drives up. I have been trying to continue work on my old UE4 project using the engine pulled from GitHub. I tried rebuilding the project with VS2017 which I know is not fully supported yet. I did run into quite a few problems, including the missing corecrt.h files. I reinstalled the Windows SDK to fix this.
The current problem is a new missing file called windows.h, and I believe it is missing due to the build tools looking for the wrong version of the SDK. I was wondering, has anyone else successfully integrated Visual Studio 2017 with their UE4 project after running into similar problems?
-- Edited due to poor grammar.
As I know Version 4.15 supports both Visual Studio 2015 (default) and Visual Studio 2017. If you are building the Engine from source code, you would want to open a command prompt after running Setup.bat and run the command GenerateProjectFiles.bat -2017. This will give you a Visual Studio 2017 solution for the Engine.
To use Visual Studio 2017 for projects, you can set your preference for which version projects use by going to Edit -> Editor Preferences -> General -> Source Code and choosing Visual Studio 2017 in the Source Code Editor setting.
If regenerating the Engine's VS project files doesn't help. Try regenerating your own UE4 project's VS project files.
With Visual Studio and UE4 closed, find the .uproject file, right click and select Generate Visual Studio project files.
Open the solution, make sure your UE4 game (e.g. MyProject) under the Games folder is set as the StartUp project (right click, Set as StartUp project), then try a compile.

Cannot open include file: 'ctype.h': No such file or directory

I installed c++ package on VS 2015 , if I tried to build the project ,the following problem appears :
C1083 Cannot open include file: 'ctype.h': No such file or directory Win32Project5 c:\program files (x86)\windows kits\8.1\include\um\winnt.h 31
Any possible solution ....
Repair / Reinstall visual studio.
Make sure that the Windows SDK option (Probably 8.1 in your case) is ticked,
As you can see in this picture:
To add the missing component, go to Control Panel -> Uninstall a Program, and select to Change the installation of Visual Studio.
Then, here is the option you need to check:
Then press "Modify".
Also don't forget to update the project's Properties to be using Windows SDK version 10.0.17134.0.
Right click on your solution or project in the solution explorer
& Retarget your solution or project to the installed SDK version
Here is mine VS 2017 build tools configuration to make Python 3.7 and up to compile on my local machine and fix. Please notice that MS changed VS Studio Build Tools interface
In order to make code to compile you also MUST to install ODBC driver
You can download VS 2017 Build tools from:
https://visualstudio.microsoft.com/downloads/

Cannot compile new project targeting WinXP after installing VS2015 Update 3

Steps to reproduce:
1. install vs2015 u3 RC
2. create a new win32 project
3. set Platform toolset to "Visual Studio 2015 - Windows XP (v140_xp)"
You can find the setting here:
Project -> Configuration properties -> General
4. Build
fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory
(without step 3, it will compile just fine)
This is a known problem with Visual Studio 2015 Update 3 RC.
Visual C++ project build fails when using the v140_xp PlatformToolset
Issue:
When using PlatformToolset v140_xp, UCRT is not added to the Include
and Library path.
Workaround:
In Visual Studio, go to the Solution Explorer.
Right click on the project, click on “Properties” Find and Select “VC++ Directories”
Append Includes Directory with “$(MSBuildProgramFiles32)\Windows
Kits\10\Include\10.0.10240.0\ucrt”
Append Library Directory with “$(MSBuildProgramFiles32)\Windows
Kits\10\lib\10.0.10240.0\ucrt\$(PlatformShortName)”
Click OK or Apply to Save.