-
-
Notifications
You must be signed in to change notification settings - Fork 659
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COMP: Create _TEMPLATE_EXPORT macros.
The CMake GenerateExportHeader is extended to provide <module-name>_TEMPLATE_EXPORT macros. Unlike non-templated class declarations, Windows must not have export specification to avoid the build error: c:\d\itk-vs14\ITK\Modules\IO\TransformBase\include\itkTransformFileReader.hxx(33): error C2491: 'itk::TransformFileReaderTemplate::TransformFileReaderTemplate': definition of dllimport function not allowed [C:\d\itk-vs14\ITK-build\Modules\IO\TransformBase\ITKIOTransformBaseHeaderTest1.vcxproj] For itk::TransformFileWriterTemplate, GCC must have the export specification to avoid link errors like: itkTransformFileWriterTest.cxx:(.text+0x13): undefined reference to `typeinfo for itk::TransformFileWriterTemplate' This macro is for templates with explicit instantiations built into a library. Related to ITK-3393. Change-Id: Ifecb23235f18811218ceb6b304c245c2e209ab1a
- Loading branch information
Showing
9 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters