path of visual studio c compiler

10,876

Finally what i did it's create a shortcut and change the target to %comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat".

Share:
10,876
reduf
Author by

reduf

Updated on July 09, 2022

Comments

  • reduf
    reduf almost 2 years

    i use to compile c/c++ code with gcc and now i want to pass on vsc. So i read for configure the path i should go in my visual studio file C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC and use vcvarsall.bat. When i do that with the powershell, it just doesn't work. If i do it with the cmd.exe, i will be able the use cl but if i open a new cmd.exe it won't work again. I try to put manually C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin in the path but it doesn't work either.
    Thank you for all the future help.