Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to statically-link MKL v9.x into a managed C++ DLL to calculate FFT?
    text
    copied!<p>I'm coding an application using C# with Visual Studio 2008. I've been reading the documentation that came with the Intel Math Library...and some forums...but couldn't get an answer. </p> <p>Here is where I'm at:</p> <p><strong>Scenario</strong>: Attempting to statically-link MKL v9.x into a managed C++ DLL to calculate FFT, using Visual Studio 2008.</p> <p>Linker command: /OUT:"C:\Projects\Acquisition Toolkit\Mainline\Builds\Debug\AcquisitionToolkit.FFT.dll" /INCREMENTAL /NOLOGO /LIBPATH:"C:\Projects\Acquisition Toolkit\Mainline\Lib\Win32" /DLL /MANIFEST /MANIFESTFILE:"Debug\Win32\AcquisitionToolkit.FFT.dll.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /ASSEMBLYDEBUG /PDB:"c:\Projects\Acquisition Toolkit\Mainline\Builds\Debug\AcquisitionToolkit.FFT.pdb" /DYNAMICBASE /FIXED:No /NXCOMPAT /MACHINE:X86 /KEYFILE:"AcquisitionToolkit.snk" /ERRORREPORT:PROMPT mkl_c.lib mkl_ia32.lib libguide40.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib</p> <p>Getting an unresolved external when linking:</p> <p>1>FFT.obj : warning LNK4248: unresolved typeref token (0100000E) for 'DFTI_DFT_Desc_struct'; image may not run</p> <p>At run-time, it crashes on the call to DftiCreateDescriptor, presumably because it didn't know the format of the descriptor struct:</p> <p>// create the FFT descriptor DFTI_DESCRIPTOR_HANDLE desc; long val = DftiCreateDescriptor(&amp;desc, DFTI_DOUBLE, DFTI_REAL, 1, length);</p> <p>// commit the FFT descriptor DftiCommitDescriptor(desc); We are including the mkl_dfti.h header file. </p> <p>Are there additional header files we need or additional libraries we need to link with? </p> <p>Where is that descriptor struct actually defined?</p> <p>I attempted to dynamically link using the mkl_c_dll.lib, but got the same unresolved external linker warning. </p> <p>Is there some other linker option I need?</p> <p>Please if someone could give me some kind of guidance/help. I'd REALLY appreciate it.</p> <p>Thanks!!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload