Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
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.
29284 Discussions

linker error with Xcode 15 and ifort oneapi 2023

sri3
Beginner
838 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
822 Views

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

0 Kudos
Reply