Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
7679 Discussions

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

Marián__VooDooMan__M
New Contributor II
177 Views

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.

0 Kudos
4 Replies
Marián__VooDooMan__M
New Contributor II
177 Views

I found the problematic value is in the static library in the project file *.vcxproj -> "<C99Support>true</C99Support>"

when I remove it, link works just fine.

Amanda_S_Intel
Employee
177 Views

Hi - I am checking into your feature request and I will provide an update soon.

Marián__VooDooMan__M
New Contributor II
177 Views

Thank you Amanda, at least you must admit that error message is not helpful at all and surprising for the user. It was kind of miracle that I found out what was the root cause of the problem...

Amanda_S_Intel
Employee
177 Views

I submitted this feature request to the development team (reference number DPD200365644). I will let you know when I have any updates.

Reply