Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
711 Discussions

question about DLL dependency, Release vs Debug

Brian_Murphy
New Contributor II
565 Views

I'm using C++ in VS2019 to build a DLL.  My DLL code uses routines in xlcall32 (lib & dll) for accessing Excel workbooks.

I don't want my DLL to have a dependency on xlcall32.DLL.  The Release build does not, but a Debug does.  I cannot figure out why.  I've got Runtime Library set to Multi-threaded (/MT) for Release and Multi-threaded Debug (/MTd) for Debug.

I have compared all project settings, and can find no other differences other than ones I expect when changing from Release to Debug.

Does anyone have any ideas on this?

Labels (1)
0 Kudos
3 Replies
Alex_Y_Intel
Moderator
492 Views

Are you using microsoft compiler or Intel compiler? 

0 Kudos
Brian_Murphy
New Contributor II
460 Views

Thanks for the reply.

I think Microsoft according to the indicated platform toolset.

Image 046.png

 

I attempted a build with Intel selected, but it failed with the following error(s).  I think I have always used the Microsoft compiler for my C programs, even though Intel's is also installed.  Intel® C++ Compiler – extension version 19.1.0.16, Package ID: w_comp_lib_2020.2.254.  Could be something about this particular version.

Build started...
1>------ Build started: Project: xlrotors, Configuration: Debug x64 ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Platforms\x64\PlatformToolsets\Intel C++ Compiler 19.1\Toolset.targets(347,5): error MSB4018: The "ICL" task failed unexpectedly.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Platforms\x64\PlatformToolsets\Intel C++ Compiler 19.1\Toolset.targets(347,5): error MSB4018: System.ArgumentNullException: Value cannot be null.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Platforms\x64\PlatformToolsets\Intel C++ Compiler 19.1\Toolset.targets(347,5): error MSB4018: Parameter name: key
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Platforms\x64\PlatformToolsets\Intel C++ Compiler 19.1\Toolset.targets(347,5): error MSB4018:    at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Platforms\x64\PlatformToolsets\Intel C++ Compiler 19.1\Toolset.targets(347,5): error MSB4018:    at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Platforms\x64\PlatformToolsets\Intel C++ Compiler 19.1\Toolset.targets(347,5): error MSB4018:    at Intel.Build.ICLTasks.ICL.IsOMPDisabled()
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Platforms\x64\PlatformToolsets\Intel C++ Compiler 19.1\Toolset.targets(347,5): error MSB4018:    at Intel.Build.ICLTasks.ICL.set_OffloadOpenMPTarget(String value)
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Platforms\x64\PlatformToolsets\Intel C++ Compiler 19.1\Toolset.targets(471,7): error MSB4026: The "OffloadOpenMPTarget=%(ClCompile.OffloadOpenMPTarget)" parameter for the "ICL" task is invalid.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Platforms\x64\PlatformToolsets\Intel C++ Compiler 19.1\Toolset.targets(347,5): error MSB4063: The "ICL" task could not be initialized with its input parameters.
1>Done building project "xlrotors.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

0 Kudos
Alex_Y_Intel
Moderator
440 Views

If you're using Microsoft compiler and having problems, you need to report to Microsoft. This forum is for Intel DPC++/C++ compiler questions. 

0 Kudos
Reply