View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015857CMakeCMakepublic2015-11-24 10:092016-06-10 14:31
ReporterChris M 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 3.4 
Target VersionFixed in Version 
Summary0015857: Symbols from *.obj's from an OBJECT lib are not exported when included in a SHARED lib when using WINDOWS_EXPORT_ALL_SYMBOLS
DescriptionThe setup is a program and two libraries.

Library 'bar' is an 'OBJECT' library.

Library 'foo' is a 'SHARED' library that includes the 'TARGET_OBJECTS' from bar in its sources.

Executable 'main' links to 'foo', and calls a function that should be exported from 'bar'.

'main' fails to link due to not finding the symbols from 'bar'.
Steps To ReproduceExtract attached zip.
mkdir build
cd build
cmake ../
cmake --build .

Expected succesful linking.

Actually 'main' executable fails to link with missing symbol from 'bar' lib.
Additional Information
Tested on Windows 10 with Visual Studio 14 2015 Win64.
TagsNo tags attached.
Attached Fileszip file icon export-all-obj-lib.zip [^] (3,341 bytes) 2015-11-24 10:09

 Relationships

  Notes
(0042889)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2015-11-24 10:09 Chris M New Issue
2015-11-24 10:09 Chris M File Added: export-all-obj-lib.zip
2016-06-10 14:29 Kitware Robot Note Added: 0042889
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team