[cmake-developers] [CMake 0015849]: Linker failure when WINDOWS_EXPORT_ALL_SYMBOLS and /bigobj are used together in a Win64 build.

Mantis Bug Tracker mantis at public.kitware.com
Tue Nov 17 16:08:27 EST 2015


The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=15849 
====================================================================== 
Reported By:                Chris M
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15849
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-11-17 16:08 EST
Last Modified:              2015-11-17 16:08 EST
====================================================================== 
Summary:                    Linker failure when WINDOWS_EXPORT_ALL_SYMBOLS and
/bigobj are used together in a Win64 build.
Description: 

Shared library fails to link when attempting to use
CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS when compiled with /bigobj.  

Only tested using Visual Studio 14 2015 Win64.

Test project attached.

It appears that printf-family function symbol names are being modified (leading
'_' removed) when cmake is processing *.obj into exportall.def.

Steps to Reproduce: 
Extract attached zip.

> mkdir build
> cd build
> cmake ../ -G "Visual Studio 14 2015 Win64" -DBUILD_BIGOBJ=ON
> cmake --build . --release Debug

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-11-17 16:08 Chris M        New Issue                                    
2015-11-17 16:08 Chris M        File Added:
windows-symbols-export-all-bigobj.zip                    
======================================================================



More information about the cmake-developers mailing list