- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I don't have Visual Studio installed on my computer due to the lack of a valid license. Therefore, I want to build programs using the command-line interface and wrote a 'HelloWorld' program to test.
Before building the program, I ran the setvars.bat located in the oneAPI folder. The output is as follows:"
C:\Users\ABC>setvars :: initializing oneAPI environment... Initializing Visual Studio command-line environment... :: WARNING: Visual Studio was not found in a standard install location: "C:\Program Files\Microsoft Visual Studio\<Year>\<Edition>" or "C:\Program Files (x86)\Microsoft Visual Studio\<Year>\<Edition>" Set the VS2019INSTALLDIR or VS2022INSTALLDIR environment variable to point to your install location and try again. For example, if you are using the VS 2022 Build Tools, do the following: set "VS2022INSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools" "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" Visual Studio command-line environment was not configured. : advisor -- latest : compiler -- latest : dal -- latest : debugger -- latest : dev-utilities -- latest : dpcpp-ct -- latest :: WARNING: Visual Studio was not found in the standard installation location: "C:\Program Files\Microsoft Visual Studio\<Year>\<Edition>" or "C:\Program Files (x86)\Microsoft Visual Studio\<Year>\<Edition>" Set the VS2017INSTALLDIR or VS2019INSTALLDIR or VS2022INSTALLDIR environment variable to point to your install location and try again. : dpl -- latest : ipp -- latest : ippcp -- latest : mkl -- latest : mpi -- latest : ocloc -- latest : tbb -- latest : vtune -- latest :: oneAPI environment initialized :: |
While building the program, an error message appeared:
C:\Users\ABC\sources\test>icx test.cpp icx: warning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found] |
I have checked many of Intel's documents but didn't find any useful information. It seems to be an issue with the environment settings. Any idea?
Thank you
Dennis
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, Visual Studio is a requirement.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page