Has anyone compiled the C++ portion (quantlibWrapper_ needed to
compile the c# assembly with dev-cpp? I am having a hard time configuring my project to provide the correct output so I can use my C# compiler to generate the assembly. |
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? On 5/10/06, Duncan McQueen <[hidden email]> wrote: > Has anyone compiled the C++ portion (quantlibWrapper_ needed to > compile the c# assembly with dev-cpp? I am having a hard time > configuring my project to provide the correct output so I can use my > C# compiler to generate the assembly. > |
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. |
I am using Microsoft's C# compiler under Net 1.1 for some uses and
Mono's for others. My concern with using Visual C++ Express was I didn't want to target .Net 2.0. I don't think it is an issue with compiling this type of library, but I wanted to make sure external dependencies were minimal. I did manage to get it to compile in dev-cpp. I get an error at runtime that I need to debug further. 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. > |
In reply to this post by Luigi Ballabio
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. > |
Free forum by Nabble | Edit this page |