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

Error

JohnNichols
Valued Contributor III
299 Views

Screenshot 2023-10-04 125857.png

This is a program that I have had a lot of help with over the years.  

It compiles fine on 2019 but the latest preview throws this error, I am sure I have seen this before, but I am stumped. 

Any help appreciated.

 

0 Kudos
1 Reply
jimdempseyatthecove
Honored Contributor III
287 Views

From: https://community.intel.com/t5/Intel-C-Compiler/ldexpf-already-defined-linker-error/td-p/1089997

This appears to be a C++ issue with math.h.

In there, ldexpf is defined as an inline function.

However, when compiling without optimizations, this function is NOT inlined.

Apparently, this function is defined elsewhere (possibly as an inline function), and as such, when compiled with optimization, the error will not appear.

 

Jim Dempsey

 

 

0 Kudos
Reply