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

making static libraries

jan_bloemer
Beginner
270 Views
Hi!

I try to bundle some of my software-routines in a static library. At the end of the makefile all objects are combined by the command

ar r libxxx.a 1.o 2.o etc

This library is used with the -lxxxx obtion while linking.

This works fine, BUT:

Some of the programs are using modules for internal comunication. When using the library the linker complains if the file work.pc and the module directory files ".d" are missing in the actual directory where the application is build.

Manually copying these files to the directory works, but can't be the final solution.

Does anybody know, how to include this information in a library or a destination where they can be reached by the compiler?


Thanks in advance

Bye

Jan Blmer

(ifc 9.0 on Suse 9.3 )
0 Kudos
0 Replies
Reply