I'm trying to build a DLL that links to acml4.3.0\ifort32\lib\libacml.lib,
it's all compling fine without warnings, but I get this linker error:
error LNK2019: unresolved external symbol _cfft1d@20 referenced in function _Stft50InverseFftInit@16
The file with Stft50InverseFFTInit in it is a plain .c file and was linked into a static .lib. This .lib and libacml.lib are then linked into the final DLL.
Figured it already,
It'd be good to add __cdecl between the function return type and the function name:
extern void cfft1d()...
extern void __cdecl cff1d()
That way it will link properly, regardless of the settings of the rest of the program..