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

Building a self-contained library

jd_weeks
Beginner
381 Views
My next problem...

I am the only programmer here willing to deal with Fortran, so I need to be able to build a library that other programmers can include in their projects for our C/C++ application. I can build a version with Fortran code just fine, but I have to include all the fortran libraries explicitly in my project.

Rather than distributing libirc.lib, libifcore.lib, etc. to all the other programmers, is there a way I can build a single library with all the necessary components?

I have tried including the Fortran libraries in my Fortran project. It lists them in the build command, and DUMPBIN shows objects that must come from the libraries, but the main project still complains that it can't find (for instance) libirc.lib.

Intel Fortran 9.1.024, Visual Studio.net 2003

Thanks!
0 Kudos
2 Replies
Steven_L_Intel1
Employee
381 Views
I can't think of a practical way. You could, I suppose, insert the contents of the various Intel Fortran libraries into yours, but that would make yours big. It would also restrict which C libraries the other programmers could use.

Have you considered building a DLL and specifying static linking of the DLL? Then you'd need to provide only your DLL and its export library.
0 Kudos
jd_weeks
Beginner
381 Views
OK- I've built a DLL, and it works. I guess that is a viable solution.
0 Kudos
Reply