[Trilinos-Users] Shared libraries on Windows platforms

Willenbring, James M jmwille at sandia.gov
Fri Jul 8 08:23:44 MDT 2011


There are no medium term plans to support shared libraries for additional packages on Windows.  The libraries that can build shared on Windows were part of a very specific effort.  We are working currently to fix shared library support for Teuchos.  If someone is interested in shared library support and able to contribute to the effort, that would be great.  Epetra_DLLExportMacro.h is generated from packages/Trilinos_DLLExportMacro.h.in in epetra/src/CMakeLists.txt.

If you are interested in more info, let me know and I will get you in touch with someone who has contributed to the Windows shared library effort.



-----Original Message-----
From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of Charles Boivin
Sent: Thursday, July 07, 2011 7:07 PM
To: 'trilinos-users at software.sandia.gov'
Subject: [Trilinos-Users] Shared libraries on Windows platforms


I have another Windows-related question.

I am trying to do perform a shared library build on win64, and am having difficulties. I have been able to generate a static build, but would like shared libraries.

I saw that both Epetra and Teuchos have the necessary DLL import/export macros for their classes (see EPETRA_LIB_DLL_EXPORT in Epetra, for example). However, for other modules I am trying to compile (specifically: AztecOO, Ifpack, ML), these macros do not exist and hence no .lib file ever gets generated (because there is nothing to export).

Are there any plans to support shared libraries for Windows platforms for the packages mentioned above?

If not, could someone suggest what the procedure should be to accomplish this task? In particular,  I see that the above macro for Epetra is defined in Epetra_DLLExportMacro.h, (which is then inserted into Epetra_ConfigDefs.h); however, this is not a distributed file. I guess CMake generates it? Could someone indicate how this happens / where to look to understand this?

Thank you in advance,

Charles Boivin 

Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov

More information about the Trilinos-Users mailing list