Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

MSW, static library link, compilation consuming static library options mismatch

$
0
0

When I link static library into my project with different options (e.g. openmp enable, and other settings) I get following error message on link (consumer of statically linked library):

2>  Option cannot change across modules: 0
2>xilink: : error #10014: problem during multi-file optimization compilation (code 1)
2>xilink: : error #10014: problem during multi-file optimization compilation (code 1)

This error message is not very helpful, since it should output ***exact*** options that are different between my project and statically linked library, so I could have a meaningful answer what options I need to change in my project to fit static library options.

This is a improvement request (I mean the message output; it should be more verbose).

Is there any workaround? How could I find which build options between static library and a consumer linking are in the conflict so I can change both or one of them?

Using ICC 15 Update 1 x64 Windows MSVC 2013.


Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>