Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*

wsl2 ubuntu intel oneapi

smokeymcpot
Beginner
392 Views

I have intel oneapi installed on windows and programs for it are written normally. I downloaded wsl2 ubuntu and want to compile the program using the icpx compiler which is in windows. I'm writing in visual studio 2022 using cmake and json presets. cmake output says that the compiler detected it. But the problem is that the Include files like #include <iosream> cannot be found. How to make it so that you can write programs in wsl under linux, using Oneapi tools (as far as I know, they are cross-platform) on windows. I don't want to download another oneapi on wsl ubuntu.1.png2.pngerror.pngjson.png

0 Kudos
1 Solution
Alex_Y_Intel
Moderator
312 Views

We have compilers for Windows and Linux, and they're not cross-platform'ed. Please download the oneAPI compiler for Linux. on your WSL. 

View solution in original post

1 Reply
Alex_Y_Intel
Moderator
313 Views

We have compilers for Windows and Linux, and they're not cross-platform'ed. Please download the oneAPI compiler for Linux. on your WSL. 

Reply