[cmake-developers] [CMake 0015857]: Symbols from *.obj's from an OBJECT lib are not exported when included in a SHARED lib when using WINDOWS_EXPORT_ALL_SYMBOLS
Mantis Bug Tracker
mantis at public.kitware.com
Tue Nov 24 10:09:56 EST 2015
The following issue has been SUBMITTED.
======================================================================
https://cmake.org/Bug/view.php?id=15857
======================================================================
Reported By: Chris M
Assigned To:
======================================================================
Project: CMake
Issue ID: 15857
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-11-24 10:09 EST
Last Modified: 2015-11-24 10:09 EST
======================================================================
Summary: Symbols from *.obj's from an OBJECT lib are not
exported when included in a SHARED lib when using WINDOWS_EXPORT_ALL_SYMBOLS
Description:
The 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 Reproduce:
Extract 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.
======================================================================
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
======================================================================
More information about the cmake-developers
mailing list