Hi @Ruslan Semchenko ,
I believe that all the needed components have been installed, as you can successfully build the project in the Visual Studio.
I think something is not set correctly or some settings are missing.
Please try to use "set" command to check the environment variables(INCLUDE, LIB, LIBPATH). For example(set INCLUDE
, set LIB
):
If some paths are missing, try to use "set" command again to add them, then test the "cl" command again. For example(set INCLUDE=xxxx\xxxx;xxxx\xxxx\xxxx
):
Note: The following screenshot only shows an example. Do not set like that, use the specific paths. You can refer to the paths I shared in above screenshot.
Please also try to reset VS settings by running devenv /ResetSettings
command in the Developer Command Prompt for VS 2022.
Feel free to let us know the results.
Best regards,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.