Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Switch from IFORT to IFX

Jing1
新手
1,613 檢視

Our FORTRAN projects can be built successfully in VS 2022 with IFORT compiler.

After switched to IFX(no code changes), got two kinds of link errors for some functions/subroutines:

- undefined symbol

- duplicate symbol

 

What FORTRAN project properties need to be set/modify to solve these errors?

Thanks.

 

 

0 積分
5 回應
Steve_Lionel
榮譽貢獻者 III
1,560 檢視

You should not need to adjust anything. Please show the actual errors. Better is if you ZIP the buildlog.htm and attach the zip here. Best is if you zip the entire project and attach it.

Jing1
新手
1,465 檢視

Thanks, Steve.

It's not allowed to attach the code here.

 

 

JohnNichols
榮譽貢獻者 I
1,558 檢視

What is the symbol name and can you provide a simple example.  

Are you using implicit none? 

Jing1
新手
1,465 檢視

Thanks, John.

The errors were thrown out of 2 big FORTRAN projects. Project 1 depends on project 2.

Yes, we are using "implicit none".

What's the issue to use it with IFX compiler?

 

 

Steve_Lionel
榮譽貢獻者 III
1,461 檢視

There is no issue using IMPLICIT NONE with IFX.

Please construct a minimal example that demonstrates the problem. Otherwise, everyone's time is being wasted.

回覆