TechSmith / AVI20

Library for reading and writing AVI 2.0 files (which supports files larger than 4GB)
8 stars 6 forks source link

Turn off whole program optimization #11

Closed daveorourke closed 4 years ago

daveorourke commented 4 years ago

Addresses: https://github.com/TechSmith/CamtasiaWin/issues/12568

Whole Program Optimization is causing this error in Camtasia while trying to build with newer versions of Visual Studio.

LINK : fatal error C1047: The object or library file 'C:\src\CamtasiaWin\packages\avi20.1.5.1\build\native\..\..\\build\native\lib\x64\v141\Release\AVI20.lib' was created with an older compiler than other objects; rebuild old objects and libraries
LINK : fatal error LNK1257: code generation failed

The solution is to turn off Whole Program Optimization, which is a linker feature that requires the code being linked to have been compiled with the same compiler.

BingTSC commented 4 years ago

👍