Posted by
dwmcqueen on
May 22, 2006; 7:39am
URL: http://quantlib.414.s1.nabble.com/QuantLib-Swig-with-dev-cpp-tp4775p4778.html
This is the error I get when I use the Dev-cpp generated dll:
BermudanSwaption.exe
Unhandled Exception: System.TypeInitializationException: The type initializer fo
r "QuantLib.NQuantLibcPINVOKE" threw an exception. ---> System.TypeInitializatio
nException: The type initializer for "SWIGExceptionHelper" threw an exception. -
--> System.EntryPointNotFoundException: Unable to find an entry point named SWIG
RegisterExceptionCallbacks_NQuantLibc in DLL NQuantLibc.
at QuantLib.SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_NQuantLibc(Exc
eptionDelegate applicationDelegate, ExceptionDelegate arithmeticDelegate, Except
ionDelegate divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, Exc
eptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, Exception
Delegate nullReferenceDelegate, ExceptionDelegate outOfMemoryDelegate, Exception
Delegate overflowDelegate, ExceptionDelegate systemExceptionDelegate)
at QuantLib.SWIGExceptionHelper..cctor()
--- End of inner exception stack trace ---
at QuantLib.SWIGExceptionHelper..ctor()
at QuantLib.NQuantLibcPINVOKE..cctor()
--- End of inner exception stack trace ---
at QuantLib.NQuantLibcPINVOKE.new_Date__SWIG_1(Int32 jarg1, Int32 jarg2, Int3
2 jarg3)
at QuantLib.Date..ctor(Int32 d, Month m, Int32 y)
at BermudanSwaption.Run.Main(String[] args)
On 5/22/06, Luigi Ballabio <
[hidden email]> wrote:
>
> On 05/22/2006 03:22:14 PM, Duncan McQueen wrote:
> > How about using mingw-gcc? Is it possible to ultimately build what
> > is needed to reference the .Net Assembly (quantlib-Wrapper) using
> > mingw-gcc to generate the c++ library?
>
> As far as I know, nobody tried. You might want to consider using
> Visual C++ Express---it's only free-as-in-beer, but it should work out
> of the box with the provided projects. What C# compiler are you using?
>
> Luigi
>
>
> ----------------------------------------
>
> Humphrey's Requirements Uncertainty Principle:
> For a new software system, the requirements will not be
> completely known until after the users have used it.
>