Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

libmmd.lib and other static libs usage for projects built using MSVC

$
0
0

Hi All,

We are using MS Visual Studio 2015 and Intel C++ Compiler 2017. All of our code is built using Intel compiler. We provide this code to others in form of dll files and associated lib that are  expected to be dynamically linked in their application. These applications are not built using Intel Compiler. When dynamically linking the application, we get an error that libmmd.lib is required. The application of course does not explicitly linked with libmmd.lib nor is it built using Intel compiler. 

Is the libmmd.lib required for the application or are we missing anything here?

If yes, the .lib files are of course not included in Intel redistributables. Are we required to provide them if somebody wants to dynamically link with dll files generated using Intel compiler?

What are the distribution licenses for these libs as far as Intel is concerned?

 

More information. 

We use the /MD switch for code generation. Using the Multi threaded static library this leads to errors.

Detailed design

basicfunctionality.lib written by us, generated using Intel compiler.

consolidatedfunctionality.dll written by us, links with basicfunctionality.lib and is generated using Intel compiler. consolidatedfunctionality.lib is also generated. 

thirdparty.exe written by others, expected to dynamically link with consolidatedfunctionality.dll. consolidatedfunctionality.lib is explicitly specified in linked libraries input. thirdparty.exe is not generated using Intel compiler, rather it uses MSVC. While building thirdparty.exe, we get an error message libmmd.lib not found. Why is it looking for libmmd.lib when libmmd.dll is already present as runtime library? I can understand consolidatedfunctionality.dll requiring libmmd.dll at runtime but cannot understand why the .lib file is required for building thirdparty.exe. Are we missing something or is this by design.


Viewing all articles
Browse latest Browse all 1175

Trending Articles



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