Kornel Benko wrote:

> Am Sonntag, 19. Juni 2016 um 19:23:14, schrieb racoon <xraco...@gmx.de>
>> On 19.06.2016 18:20, Georg Baum wrote:
>> > racoon wrote:
> 
> ...
> 
>> >
>> > The most important question now is why cmake does not find your C
>> > compiler.
>> 
>> I have no clue. There is a cl.exe in
>> 
>> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin

Then your MSVC installation is OK.

> Daniel, please check if you have cl.exe in PATH.
> 1.) Open a command window.
> 2.) call 'cl -v'

Having it in PATH is not recommended for MSVC, because you need different 
versions depending on whether you want to compile for 32bit or 64bit, and 
you can install different MSVC versions in parallel. Therefore MSVC supplies 
the batch file vcvarsall.bat which sets the correct paths. Any program that 
needs the MSVC tools in PATH should always be executed after this batch file 
was called (in the same command window or from the .bat file that calls 
vcvarsall.bat). MSVC does also create a start menu entry which opens a 
command prompt with that file already executed, so the instructions above 
should read:

1.) Open the "Developer Command Prompt for VS2015" from the "Visual Studio 
2015\Visual Studio Tools" subfolder of the start menu
2.) type 'cl -v' in the command window that was opened by 1)

Alternatively, one could also call vcvarsall.bat manually (in case the above 
does not work for any reason):

1.) Open a command window.
2.) type 'call "C:\Program Files (x86)\Microsoft Visual Studio 
14.0\VC\vcvarsall.bat" x86'
3.) type 'cl -v'

The single quotes must not be typed in both cases, and the line break should 
be ignored as well.


Georg


Reply via email to