<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[how to set system environment variables for Visual Studio 2022 C++ compiler]]></title><description><![CDATA[<p dir="auto">I set System Environment variable for C++ compiler as</p>
<pre><code>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build;
</code></pre>
<p dir="auto">I expected to call "vcvarsall.bat" to compile.<br />
and I got this result to make me believe the location is shared.<br />
<img src="https://ddgobkiprc33d.cloudfront.net/87350691-688f-4808-8ba1-dea77315dc11.png" alt="de412787-7cd3-44b6-bf91-93458cb0dcbd-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">however cmake on the QT terminal produces an error as below</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/5d35cb19-857d-4f12-b0f9-9f546f8d3ba4.PNG" alt="error.PNG" class=" img-fluid img-markdown" /><br />
Do I need to fix some value?</p>
]]></description><link>https://forum.qt.io/topic/146827/how-to-set-system-environment-variables-for-visual-studio-2022-c-compiler</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 07:23:44 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/146827.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Jul 2023 07:18:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how to set system environment variables for Visual Studio 2022 C++ compiler on Fri, 21 Jul 2023 06:58:21 GMT]]></title><description><![CDATA[<p dir="auto">You first screenshot says: <code>[ERROR: vcvarsall.bat] Error in script usage.</code> You need to specify the <code>arch</code> for this script to do anything at all. Most likely you want to call <code>vcvarsall.bat amd64</code> to compile for 64-bit.</p>
]]></description><link>https://forum.qt.io/post/765693</link><guid isPermaLink="true">https://forum.qt.io/post/765693</guid><dc:creator><![CDATA[SimonSchroeder]]></dc:creator><pubDate>Fri, 21 Jul 2023 06:58:21 GMT</pubDate></item></channel></rss>