Menu

#85 config error in CSharp SWIG extension for QuantLib_vc8.sln

closed-fixed
None
5
2009-02-25
2009-02-19
No

Compiling the CSharp SWIG extension fails for vc8. The following easy fix is needed:

For both BermudanSwaption_vc8 and EquityOption_vc8
1) right-click -> Properties -> Build Events
2) change
copy "$(SolutionDir)cpp\bin\vc80\$(ConfigurationName)\NQuantLibc.dll" "$(TargetDir)"
to
copy "$(SolutionDir)csharp\bin\vc80\$(ConfigurationName)\NQuantLib.dll" "$(TargetDir)"

Notice the change from "cpp" to "csharp" and removing the "c" from NQuantLibc.dll.

Rebuild solution and it should compile cleanly.

Discussion

  • Grant Birchmeier

    • summary: error in CSharp SWIG extension for QuantLib_vc8.sln --> config error in CSharp SWIG extension for QuantLib_vc8.sln
     
  • Luigi Ballabio

    Luigi Ballabio - 2009-02-23

    The dependency on NQuantLib should already take care of it. In fact, it does on my machine.
    What version of Visual C# are you using? (Express, Standard...)
    If you open the "Project dependencies" dialog on either BermudanSwaption or EquityOption, do you see NQuantLib as a dependency?

     
  • Grant Birchmeier

    I'm using Visual Studio 2005 Professional Edition - Microsoft Visual C# 2005.

    In the "Project Dependencies" dialog for BermudanSwaption_vc8 project, the dependencies are NQuantLib_vc8 and NQuantLibc, in that order.

    For EquityOption_vc8 project, the only dependency is NQuantLib_vc8.

    These settings are as they were out-of-the-box, that is, I did not alter them.

     
  • Luigi Ballabio

    Luigi Ballabio - 2009-02-25
    • assigned_to: nobody --> lballabio
    • status: open --> closed-fixed
     
  • Luigi Ballabio

    Luigi Ballabio - 2009-02-25

    The bug is now fixed in the Subversion repository.
    Thank you for the report.

     

Log in to post a comment.

MongoDB Logo MongoDB