Could not determine MSC version (Visual Studio 2017)

Stephan Bergmann sbergman at redhat.com
Fri Jan 25 10:55:34 UTC 2019


On 25/01/2019 11:48, julien2412 wrote:
> Just for curiosity, what's the result for you with the cl commands you
> provided me?
> I mean I suppose you must have this non break character too and so sed
> command should also fail for you, shouldn't it?

I get

> Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x64
> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
> cl : Command line warning D9002 : ignoring unknown option '-v'
> cl : Command line error D8003 : missing source filename

with a true space.

> I changed the sed command and runned:
> $
> C:/PROGRA~2/MIB055~1/2017/COMMUN~1/VC/Tools/MSVC/1416~1.270/bin/HostX64/x64/cl.exe
> -v 2>&1 | sed -ne
> 's|.*\([0-9]\+[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p'
> 
> I got:
> $ 19.16.27026.1
> 
> Here's the before/after of sed:
> sed -ne 's|.* \([0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p'
> sed -ne
> 's|.*\([0-9]\+[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p'
> 
> Does it seem ok to you?

Yeah, that should work, at least as a workaround.


More information about the LibreOffice mailing list