Author Topic: MSVC 19.33.31630 issue  (Read 110 times)

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1431
    • View Profile
MSVC 19.33.31630 issue
« on: October 21, 2022, 02:59:33 PM »
-FYI-

I installed the latest MS Visual Studio Community today and attempted to compile BCX as
32-bit and 64-bit, to initially test that my MSVC installation was functioning correctly.

My batch files correctly compiled BCX to 64-bit but produced a corrupt 32-bit version of BCX.

I tracked down the problem to both the /O1 and /O2 optimize switches when compiling to 32-bit.

Specifying -NO- optimization directives resulted in a correctly functioning 32-bit version of BCX.
« Last Edit: October 21, 2022, 06:05:11 PM by MrBcx »

jcfuller

  • Sr. Member
  • ****
  • Posts: 380
    • View Profile
Re: MSVC 19.33.31630 issue
« Reply #1 on: October 21, 2022, 03:57:29 PM »
Kevin,

?? MSVC 14.33.31629


**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.3.6
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86'

C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools>cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31630 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]

C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools>

James
« Last Edit: October 21, 2022, 04:47:51 PM by MrBcx »

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1431
    • View Profile
Re: MSVC 19.33.31630 issue
« Reply #2 on: October 21, 2022, 04:47:21 PM »
Kevin,

?? MSVC 14.33.31629

James

I forgot that Microsoft names their related folders and versions differently.

For example:

Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31630 for x86

lives in C:\VS2022\Tools\MSVC\14.33.31629\Bin\Hostx86\x86\    on my PC.

I'll update the Subject line in this thread but the bug notice still stands.

« Last Edit: October 21, 2022, 08:56:22 PM by MrBcx »