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*
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
808 Discussions

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

seobiya
Beginner
699 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
645 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