View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0010803 | CMake | CMake | public | 2010-06-08 22:19 | 2011-01-12 07:32 | ||||
Reporter | Brian Bassett | ||||||||
Assigned To | Brad King | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake-2-8 | ||||||||
Target Version | CMake 2.8.4 | Fixed in Version | CMake 2.8.4 | ||||||
Summary | 0010803: Shared library or module Fortran-only targets do not link correctly in VIsual Studio 2008 | ||||||||
Description | When 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 Information | Environment: Visual Studio 2008 Intel Visual Fortran 11.1 Using "Visual Studio 9 2008" generator | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | FortranDLL.zip [^] (678 bytes) 2010-06-08 22:19 BuildLog.htm [^] (4,534 bytes) 2010-06-08 22:19 vs_fortrandll.patch [^] (756 bytes) 2010-06-08 22:20 [Show Content] | ||||||||
Relationships | |
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 [^] |
Notes |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |