Solved "'cl' is not recognized as an internal or external command" error after VS2019 update?
-
Go to "Compilers" and click Re-detect, then Apply.
-
@Bonnie ,
I did it many times. :(
Same problem.Regards,
Mucip:) -
If you start command prompt from "x64 Native Tools Command Prompt for VS 2019" in the start menu, can you run cl?
-
@Bonnie
Looks lik OK.Regards,
Mucip:) -
Hmm...I'm out of ideas, had you change the Path in your project's Build Environment?
-
@Bonnie ,
Yes, I added PostgreSQL driver paths only.But everythig wa OK before then VS2019 update.:(
Regards,
Mucip:) -
@Mucip Then try to reset the Path first, and add your driver paths back after that.
-
@Bonnie
I think I found a solution with your helps.I deleted pro.user file in the project directory and recreated with Qt Creator.
I added PostgreSQL ODBC paths in Build Environment path.Than all is fine now.
But I don't know why it is happened like this?!
Thank you all guys. :)
Regards,
Mucip:) -
I think it is because after the update, the full path of cl.exe has changed.
Normally Qt uses vcvarsall.bat to set the enviroment, so there won't be any problem.
But when you set the Path of the project, it saved in the pro.user with the old Path. -
@Bonnie
You may be right.
But I use like this more than 1 year and I made many VS2019 update in this period.
This was the first time. Interesting?!...Regards,
Mucip:)