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

c lib point

ppthelion
Beginner
412 Views
Hi,everyone:
Merry Christmas and Happy New Year!
In fortran ,we can add a line '!DEC$ OBJCOMMENT LIB:'*.lib'' in each module file to let the program can automatically call it.But here I create a c lib , to compile my fortran program ,exceptlythe lib is in the same path of it.Otherwise ,it can't find it .even it's in the silent search path of the compiler.What I can do to let it be the default lib and used as fortran follow my inclinations?
Have a nice day!
0 Kudos
1 Reply
Steven_L_Intel1
Employee
412 Views

Are you asking what the C equivalent of !DEC$ OBJCOMMENT LIB is? It is:

#pragma comment(lib,"libname.lib")

See here for more information.
0 Kudos
Reply