How to set environment variables for MSVC++ cl.exe compiler alongside older versions?

  • Thread starter Thread starter Hana_bchna
  • Start date Start date
H

Hana_bchna

Guest
Hello I've installed MSVC++ 6.0 in my computer so it has set the environment variables.

No I've installed MSVC++ 2019 but when I go to Computer properties->advanced system settings->Environment variables

Include contains only C:\Program Files (x86)\Microsoft Visual Studio\VC98\atl\include;C:\Program Files (x86)\Microsoft Visual Studio\VC98\mfc\include;C:\Program Files (x86)\Microsoft Visual Studio\VC98\include

and the remaining path, libs... all contains folders of MSVC++6 but not 2019.


  • I need this because sometimes I want to compile my C++20 code from CMD not from IDE.


  • I've run as administrator VsDevCmd.bat but it didn't make changes!


  • So how can I set the environment variables for visual Studio 2019? Thank you!

Continue reading...
 
Back
Top