MantisBT - CMake
View Issue Details
0015857CMakeCMakepublic2015-11-24 10:092016-06-10 14:31
Chris M 
Kitware Robot 
normalminoralways
closedmoved 
CMake 3.4 
 
0015857: Symbols from *.obj's from an OBJECT lib are not exported when included in a SHARED lib when using WINDOWS_EXPORT_ALL_SYMBOLS
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'.
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.

Tested on Windows 10 with Visual Studio 14 2015 Win64.
No tags attached.
zip export-all-obj-lib.zip (3,341) 2015-11-24 10:09
https://public.kitware.com/Bug/file/5584/export-all-obj-lib.zip
Issue History
2015-11-24 10:09Chris MNew Issue
2015-11-24 10:09Chris MFile Added: export-all-obj-lib.zip
2016-06-10 14:29Kitware RobotNote Added: 0042889
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042889)
Kitware Robot   
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.