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

MacOS X Catalina ifort linking issue

facdisa
Beginner
320 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
Black Belt
304 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

1 Reply
mecej4
Black Belt
305 Views

According to Unix conventions, the command should be

 

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

 

Reply