Error C1004 while trying to add a pricing engine SOLVED

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Error C1004 while trying to add a pricing engine SOLVED

Lapin
Hi,

I am trying to add a pricing engine to quantlib 0.8.1.
I am adding a very simple class to the pricing engine directory, but I get an C1004 (end of file found).
I have checked and double checked my brackets count and it seems fine.

Can someone give me a hint since I have no idea how to solve this one.
Precision: I am using Visual Studio Express 2005.

The hpp and cpp files are included below.

Thanks a lot

Hpp file
#ifndef quantlib_heston_barrier_adi_engine_hpp
#define quantlib_heston_barrier_adi_engine_hpp

#include <ql/instruments/barrieroption.hpp>

namespace QuantLib {

//Pricing of a barrier option using ADI splitting scheme (Craig Schneyd)

        class HestonADIEngine : public BarrierOption::engine {
      public:
        void calculate() const;
    };

}

#endif



Cpp file

#include <ql/processes/hestonprocess.hpp>
#include <ql/pricingengines/barrier/hestonbarrieradi.hpp>

namespace QuantLib {

        void HestonADIEngine::calculate() const {

         }
}

NB: Restarting from scratch has solved the issue
Reply | Threaded
Open this post in threaded view
|

Re: Error C1004 while trying to add a pricing engine

Luigi Ballabio
On Mon, 2007-08-06 at 02:24 -0700, Yomi wrote:
> I am trying to add a pricing engine to quantlib 0.8.1.
> I am adding a very simple class to the pricing engine directory, but I get
> an C1004 (end of file found).

Hi,
        I just noticed your mail---somehow I lost track of it after my
vacations. Did you solve the problem?

Luigi


--

Ogden's Law:
The sooner you fall behind, the more time you have to catch up.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users