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*
790 Discussions

Change Compiler ( C++ Compiler Classic -> DPC++ Complier)

seobiya
Beginner
670 Views

Hello,

I have a query.
I have a project code that was developed in a QT environment and compiled and built using the C++ Classic Compiler.
I'm now trying to compile and build this same code in a Visual Studio environment using the DPC++ Compiler, but I'm encountering errors during the compilation and build process.

For instance, I'm getting errors like:
declaration of 'sqrt' has a different language linkage
C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt\corecrt_math.h(512,54)

or
declaration of 'pow_dd' has a different language linkage
C:\Users\ABC\Desktop\test\Common\midaco.c(6420,8)

I'm inquiring about any effective tools or methods that can facilitate the transition from the Intel C++ Classic Compiler to the DPC++ Compiler during the build process.

Thanks!

0 Kudos
1 Reply
Alex_Y_Intel
Moderator
616 Views

Which icc did you use to build the program? Since icc and icx compilers are very different, there bound to be some changes needed for your program. Please reference to this document first: https://www.intel.com/content/www/us/en/developer/articles/guide/porting-guide-for-icc-users-to-dpcpp-or-icx.html

0 Kudos
Reply