Silverfrost Forums

Welcome to our forums

Static libraries

15 Nov 2004 11:41 #76

In the Microsoft-supported .NET languages, e.g. VC#, it is impossible to link a .NET program with a static-linked library (as far as I know). This is a big problem, because since I have many legacy object libraries that are not designed to linked as shared, and moreover, most of them originate from the Lunix world, and are tricky to rebuild on a Windows platform anyway (they come with makefiles or Imakefiles that are useless in the Win32 world).

Actually I have two questions:

  1. Does anyone know of a way to link a static library into a .NET program (I'm not optimistic, but I might as well ask), and

  2. Can I use FTN95 to link with a library produced by Compaq's older version of Visual Fortran (Visual Studio 6)?

Thanks...

Dave

17 Nov 2004 3:53 #78

It really depends what you mean by the first question. If you mean can you take a whole load of source files, compile them and then link them into a big .exe then yes, thelinker (dbk_link) does that. Static libraries are usually concatenations of many .obj files in which can this can be simulated with link scripts.

I assume you mean in the second question: can I link Compaq Visual Fortran for Win32 with FTN95.NET. The answer is no! If you can make the static library into a (Win32) DLL then it may be possible.


Administrator Silverfrost Forums


-- Admin Silverfrost Limited
Please login to reply.