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

Did there any formulas like '!DEC$ OBJCOMMENT LIB:'''

ppthelion
Beginner
514 Views
HI:
when I compile my own library,it generates many module files ,and only a library file . in windows, I have add a line !DEC$ OBJCOMMENT LIB:'' to let the modules point to one lib ,but in linux, it can't be recognized. At first ,I think if i use the -I${INLCUDE}
and -L{LIBRARY_PATH} ,the compiler will look into the library which I point to ,But the result seems it can find the module file ,not library.it can go through the pretranslation process successfully.and acts not find the function accordingly .........
So ,what I can do ?
Thanks!
0 Kudos
2 Replies
Ron_Green
Moderator
514 Views
I am not familiar with the Windows directive you mention. But on Linux, what exactly do you want to do? Do you want to create a static library (.lib) or a shared library ( .so )? Are you asking how to gather the compiled object files into one library?

ron
0 Kudos
Steven_L_Intel1
Employee
514 Views
This directive adds a linker directive to the object code that names a library to be referenced. The Windows linker has this feature, the Linux and Mac OS linkers do not.
0 Kudos
Reply