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

MacOS X Catalina ifort linking issue

facdisa
Beginner
532 Views

Hi,

my problem is that the linker fails with:
ld: library not found for -llibfparser.a

when I use:

ifort -L/usr/local/lib/ -I/usr/local/include/fparser-v1.1/ -llibfparser.a test.f90

if I compile specifying the complete path all is OK

ifort -I/usr/local/include/fparser-v1.1/ /usr/local/lib/libfparser.a test.f90

this gives me the correct executable file.

There are two modules that are correctly seen through the -I switch what seems to not work is the -L switch.

Thanks

(sorry for my English)

0 Kudos
1 Solution
mecej4
Honored Contributor III
516 Views

According to Unix conventions, the command should be

 

ifort -I/usr/local/include/fparser-v1.1/ test.f90 -L/usr/local/lib -lfparser

 

View solution in original post

0 Kudos
1 Reply
mecej4
Honored Contributor III
517 Views

According to Unix conventions, the command should be

 

ifort -I/usr/local/include/fparser-v1.1/ test.f90 -L/usr/local/lib -lfparser

 

0 Kudos
Reply