Failed to obtain a compiler version - pvs-studio

I use Microsoft Visual Studio 2015 Community Update 3 to program various software and wanted to check PVS-Studio 6.14.21489 with the free license.
But I can't get it to work from Visual Studio, all it's able to outpout is:
Failed to preprocess file "[file path].cpp": Failed to obtain a compiler version.
V008: Unable to start the analysis on this file. [file path].cpp. Failed to obtain a compiler version.
Tested with win32 and x64 on both debug and release and I get this message on all files, nothing else. Solutions are compiling sucessfuly.
I tried reinstalling the product, same effect.
Note: I use Windows 8.1 Standard edition x64, all products including Visual Studio are installed in their default folder in C:\Program Files (x86)
Any clue would be very appreciated
Many thanks

Thank you for a detailed explanation of the issue. It was caused by a defect in our code. We have fixed it and published a beta version of PVS-Studio with a fix. You may download it using this link. Please try it in your environment and let us know the results.

Related

Installing Xamarin Studio 6.1.2.44, MSBuild Tools 2015 download removed

I'm trying to install Xamarin Studios(MonoDevelop) for windows, however Microsoft Build tools 2015 download was been removed which is needed by the installer.
https://www.microsoft.com/en-in/download/details.aspx?id=48159
How can I get the MS Build tools 2015? Is there another way to get it?
You can get MSBuild tools and visual c++ build tools 2015 and 2017 from the below link:
Visual C++ Build Tools
Whatever may be your purpose, please download from here:
24 MB is the size. Also there are two updates available.
https://my.visualstudio.com/Downloads?q=Microsoft%20Build%20Tools%202015
I found this thread cause I also had the same problem and I finally fixed it.
Apparently, MSDN accounts have a "previously downloaded" section where you can find older version of, for example, Microsoft Build Tools. I don't remember downloading it before, but it was there regardless, so give it a shot.
If you don't find it, let me know and I can add a download link to the copy I got.

Compiling WSDLPULL with Microsoft VisulaStudio 2010 express

I am trying to compile wsdlpull (http://wsdlpull.sourceforge.net/#install) to create the dll and the tools but I cant seem to open the dsw file in to the work space with out errors as the instructions suggests. Could some who has tried this before give me a few hints as to what this might be caused by.
If not can someone suggest a good SOAP library with LGPL license.
Look in the wsdlpull-1.24\win32\vs2008 directory for the Visual Studio 2008 project version and convert that.

Visual Studio 2010 not starting - Missing ATL100.DLL

I tried to start Visual Studio and it said: "This application has failed to start because ATL100.DLL was not found. Re-installing the application may fix this problem".
I don't want to reinstall it (time consuming).
I also just uninstalled all the C++ stuff (I don't do any C++ work, so I got rid of it).
So does anyone know?
If the ATL100.DLL is missing you're likely just seeing the first missing file of a now corrupted installation. If you don't want to do a full reinstall you can attempt to repair the installation from your install source but there's no easy fix for this.
http://msdn.microsoft.com/en-us/library/e2h7fzkw.aspx#repair
You need to have the MS VC++ 2010 redistributable pack installed on the client machine.
You should also link your program against the release version of the redist pack and not distribute a debug version of the VC++ runtime (msvcr100d.dll) as its release counterpart is part of the VS2010 redistributable pack, as described here. The ATL100.dll is also part of that pack. MS has strict policies about which dll can be distributed with the application. A previous post about DWMAPI.DLL will help to sort out that problem.
source:iodocs.com

Visual studio redistributable & side-by-side / DependentAssembly error

(I'm running Windows7 and using Visual Studio 2010.)
I'm using ClamAV in a .NET Azure project, and I'm running into side-by-side errors whenever I run clamd.exe, either through my code or by running clamd.exe on it's own.
In Visual Studio 2010 I am getting the error:
Win32Exception was unhandled The application has failed to start
because its side-by-side configuration is incorrect. Please see the
application event log or use the command-line sxstrace.exe tool for
more detail
And in Event Viewer I get:
Activation context generation failed for
"C:\Users\pconerly\code\AntiVirus_source\WorkerRole\clamav\clamd.exe".
Dependent Assembly
Microsoft.VC80.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.6195"
could not be found. Please use sxstrace.exe for detailed diagnosis.
When I searched for "8.0.50727.6195" it led me to the 2005 redist, so I downloaded it
http://www.microsoft.com/download/en/details.aspx?id=3387
After a restart I am still getting the side-by-side error. Additionally, I think that the redist installer is not completing it's install-- like it's seeing visual studio 2010 and saying "oh, that's good enough, no need for me to install". I haven't tried uninstalling 2010 and using 2005, because the rest of my Dev team is using VS 2010.
What's the deal? How can this be fixed? I'm ready to pull out my hair.
The link Timores posted is the update for Visual Studio. The actual redistributable package is this:
http://www.microsoft.com/en-us/download/details.aspx?id=26347
The version you mention is actually at found here
Microsoft Visual Studio 2005 Service Pack 1 MFC Security Update
Timores is right: the redist should be this one, which is related to this KB entry
As you can see there, msvcr80.dll has been updated to version 8.0.50727.6195.
It is the "security update" of the "SP1" of the 2005 C++ runtime..
Your exe probably requires (through an internal manifest) that specific version.
If it is not found on the system (there's a lot of places searched for) nor in the current folder (with a suitable manifest aside) it won't load the exe since it is not able to "activate the context", that is load the specific DLL required in the manifest.
I had similar issues when my system got updated (windows updates) and the newly compiled EXEs were not working with an old-versioned runtime placed on the same folder.
I had to update msvcr80.dll and its manifest (which I found deep in \windows\winsxs) to make everything work.
Context activation is a tricky matter, anyway :)
HTH

Compiling CUDA with Visual Studio 2010

I have used Visual Studio 2008 to compile and run CUDA applications before. I have switched to Visual Studio 2010 and Windows 7. I've been trying to get integration set up all morning, but haven't had complete success. I've downloaded the toolkit, installed Nsight, made sure the libraries/include/bin paths are set, checked the box to use a Build Customization of CUDA 3.2, and set the properties of the individual .cu file to be of type CUDA C/C++ instead of C/C++. I got an error about not supporting compiler v100, so I set the project platform to v90 and am downloading Visual Studio 2008 now. I was hoping that I wouldn't have to have two versions of visual studio installed, but oh well. Anyway, most of the syntax highlighting is enabled, some keywords like "int" is blue, comments are green, and strings are red. However, cuda-specific keywords like __ global__ aren't. Also, I've checked through the include directories and can't find cutil.h, so I'm wondering if there's anything else that wasn't included in the install of the 3.2 SDK (I have included cuda_runtime.h instead, but I don't know if this will solve my problems). Does anyone know how to fix this?
Edit: I have Visual Studio 2008 installed. When I try to compile, I get a giant list of errors, starting with 1>C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\crtdefs.h(490): error : invalid redeclaration of type name "size_t", while most of the following errors have to deal with the size_t type. All of the errors are in included files, most of which I've never seen. Does anyone know what's going on? Or if there's a simple, step-by-step guide to getting VS2010 to use cuda?
Edit 2: Apparently I had one of the many current settings as 64-bit, and the others as 32-bit. Changing the active configuration, Cuda C/C++ Target Machine Platform, and Linker|Advanced Target Machine all to 32-bit or 64-bit allowed me to compile and run. I still don't have any idea how to fix the __ global__ and such syntax highlighting, but it's not that big of an issue.
You'll find a complete guide here:
How to Run CUDA In Visual Studio 2010
you can check if the source file that contains kernel is a CUDA/C file rather than a C/C++ file. (Solution Explorer -> File Properties)

Resources