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

linker error with Xcode 15 and ifort oneapi 2023

sri3
Beginner
326 Views

I have a Fortran function that uses ** operation, the linker gives the following error

ld: Undefined symbols:
___powr8i8, referenced from:
_pow_ in pow.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The libraries specified to the linker are  -lifcore -limf -lintlc -lirc -lsvml  apart from others.

 

I am using OneAPI 2023 The clang linker is use since, I have link against other c libraries.  Is there a way to fix this linker error ?

0 Kudos
1 Reply
Ron_Green
Moderator
310 Views

Check your paths - powr8i8 is in libimf, which you are correctly trying to link in with -limf

0 Kudos
Reply