MSVCRT Runtime Error
Posted by
Lucas Ingles on
URL: http://quantlib.414.s1.nabble.com/MSVCRT-Runtime-Error-tp16846.html
Hello,
I am trying to build a simple DLL for Excel that uses QuantLib with MinGW on Windows 7. The DLL exports simple C functions using the following statements:
extern "C" _
_declspec(dllexport) __stdcall double some_function().
QuantLib objects are used inside these functions. I was able to use some objects with success until I tried template classes, like InterpolatedZeroCurve<Interpolator>. The code build successfully, but when I ran it in Excel I get the following error:
"Microsoft Visual C++ Runtime Library: This application has requested the Runtime to terminate it in an unusual way. Please contact the applications support team for more information".
The same function works if I test it through a simple command line application. Also, I verified dependencies with Dependency Walker and everything is fine.
I would appreciate very much any help or explanation regarding this behaviour.
Thanks very much,
------------------------------------------------------------------------------
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users