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*

Intel OneAPI and CodeBlocks?

porkroast
Beginner
462 Views

Hello all,

 

I am trying to get the Intel OneAPI C++ compiler to work with CodeBlocks-- has anyone been successful with this?  I am running Windows 11, MSVC 2022 Community-- I have the Intel OneAPI Command Prompt working perfectly, but there is something that I am missing with my CodeBlocks Toolchain, search paths, and linker settings.  Here is one of my problems:

 

xilink: warning #10047: Tool use is limited for IL0 based targets. Please use the IL0 based build.

 

I am using icx and xilink for both dynamic and static libraries-- I am unsure about which settings to use for the Debugging and Make dialogs.

 

Any tips or tricks would be much appreciated!

 

Best,

Lou

0 Kudos
1 Reply
tdechaize
Beginner
261 Views

Hi,

I constat same behaviour (and me too use OneAPI configured into CB).

But, it's not a problem into CB, because IDE generate only by "translating" commands (like in command console Windows).

Here instructions generated :

icx.exe --version
Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2025.3.0 Build 20251010
Copyright (C) 1985-2025 Intel Corporation. All rights reserved.
Intel(R) oneAPI DPC++/C++ Compiler 2025.3.0 (2025.3.0.20251010)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files (x86)\Intel\oneAPI\compiler\2025.3\bin\compiler
Configuration file: C:\Program Files (x86)\Intel\oneAPI\compiler\2025.3\bin\compiler\..\icx.cfg
icx.exe /nologo -Wall /Zi /DDEBUG /D_DEBUG /I"C:/Program Files (x86)/Intel/oneAPI/compiler/latest/include" /I"C:/Program Files (X86)/Windows Kits/10/include/10.0.26100.0/um" /I"C:/Program Files (X86)/Windows Kits/10/include/10.0.26100.0/shared" /I"C:/Program Files (X86)/Windows Kits/10/include/10.0.26100.0/ucrt" /I"C:/Program Files/Microsoft Visual Studio/18/Community/VC/Tools/MSVC/14.50.35717/include" /c src/Lesson01.c /FoobjINTELX64/Debug/src/Lesson01.obj
rc.exe /I"C:/Program Files (X86)/Windows Kits/10/include/10.0.26100.0/um" /I"C:/Program Files (X86)/Windows Kits/10/include/10.0.26100.0/shared" /I"C:/Program Files (X86)/Windows Kits/10/include/10.0.26100.0/ucrt" /I"C:/Program Files/Microsoft Visual Studio/18/Community/VC/Tools/MSVC/14.50.35717/include" -foobjINTELX64/Debug/src/Lesson01.res src/Lesson01.rc
xilink.exe /nologo /subsystem:windows /LIBPATH:"C:/Program Files (x86)/Intel/oneAPI/compiler/latest/lib" /LIBPATH:"C:/Program Files (X86)/Windows Kits/10/lib/10.0.26100.0/um/x64" /LIBPATH:"C:/Program Files/Microsoft Visual Studio/18/Community/VC/Tools/MSVC/14.50.35717/lib/x64" /LIBPATH:"C:/Program Files (X86)/Windows Kits/10/lib/10.0.26100.0/ucrt/x64" /LIBPATH:"C:/Program Files/Microsoft Visual Studio/18/Community/VC/Tools/MSVC/14.50.35717/lib/x64/store/references" /out:binINTELX64/Debug/Lesson01.exe glu32.lib opengl32.lib user32.lib advapi32.lib comdlg32.lib winmm.lib gdi32.lib shell32.lib kernel32.lib objINTELX64/Debug/src/Lesson01.obj objINTELX64/Debug/src/Lesson01.res /MACHINE:X64

And warning message during linkage : xilink: warning #10047: Tool use is limited for IL0 based targets. Please use the IL0 based build.

Nothing appear with my precedent version of OneAPI 2024.2. Strange no ?

 

Thank, for your response.
 

0 Kudos
Reply