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 ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers