View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010803CMakeCMakepublic2010-06-08 22:192011-01-12 07:32
ReporterBrian Bassett 
Assigned ToBrad King 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.4Fixed in VersionCMake 2.8.4 
Summary0010803: Shared library or module Fortran-only targets do not link correctly in VIsual Studio 2008
DescriptionWhen building a shared library or module target consisting of only Fortran sources with the Visual Studio 9 2008 generator, the final link line is missing the /DLL flag. This attempts to link the target as an executable, which fails with an error about unresolved symbols (usually __MAIN_) or a missing entry point.
Additional InformationEnvironment:
Visual Studio 2008
Intel Visual Fortran 11.1

Using "Visual Studio 9 2008" generator
TagsNo tags attached.
Attached Fileszip file icon FortranDLL.zip [^] (678 bytes) 2010-06-08 22:19
htm file icon BuildLog.htm [^] (4,534 bytes) 2010-06-08 22:19
patch file icon vs_fortrandll.patch [^] (756 bytes) 2010-06-08 22:20 [Show Content]

 Relationships

  Notes
(0020948)
Brian Bassett (reporter)
2010-06-08 22:26

Attached is a sample project that will reproduce the issue, along with a build log from a failing run.

The attached patch fixes the issue by making sure that the VFLinkerTool emitted for a Fortran-only DLL project has the LinkDLL attribute set.
(0024444)
David Cole (manager)
2011-01-05 19:28

Brad, do you know if this is still an issue with git 'master'...?
(0024450)
Brad King (manager)
2011-01-06 07:43

This commit:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=22aec406 [^]

fixes the RuntimeLibrary attribute but AFAIK we don't set LinkDLL yet.
(0024453)
Brad King (manager)
2011-01-06 08:13

Patch applied, thanks:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f661b953 [^]

 Issue History
Date Modified Username Field Change
2010-06-08 22:19 Brian Bassett New Issue
2010-06-08 22:19 Brian Bassett File Added: FortranDLL.zip
2010-06-08 22:19 Brian Bassett File Added: BuildLog.htm
2010-06-08 22:20 Brian Bassett File Added: vs_fortrandll.patch
2010-06-08 22:26 Brian Bassett Note Added: 0020948
2011-01-05 19:28 David Cole Assigned To => Brad King
2011-01-05 19:28 David Cole Status new => assigned
2011-01-05 19:28 David Cole Note Added: 0024444
2011-01-06 07:43 Brad King Note Added: 0024450
2011-01-06 08:13 Brad King Note Added: 0024453
2011-01-06 08:13 Brad King Status assigned => closed
2011-01-06 08:13 Brad King Resolution open => fixed
2011-01-12 07:32 David Cole Fixed in Version => CMake 2.8.4
2011-01-12 07:32 David Cole Target Version => CMake 2.8.4


Copyright © 2000 - 2018 MantisBT Team