http://quantlib.414.s1.nabble.com/inserting-new-class-in-quantlib-tp5546p5547.html
> From:
[hidden email]> To:
[hidden email]> Subject: [Quantlib-users] inserting new class in quantlib
>
> Hi all,
> i'm a new user and i'm trying to insert and compile a new class in
> quantlib.
> I apologize for this newbie question:
>
> if i compile my class all work well but if i insert it in quantlib,
> visual studio can't build the library giving me the following error:
>
> 1>d:\Quantlib\QuantLib-0.9.0\ql/indexes/inflationindexseasonality.hpp(52)
> : fatal error C1004: unexpected end-of-file found
> 1>inflationindex.cpp
> 1>d:\Quantlib\QuantLib-0.9.0\ql/indexes/inflationindexseasonality.hpp(52)
> : fatal error C1004: unexpected end-of-file found
>
> If i delete the following rows:
>
> #ifndef SEASONALITY_HPP (12)
> #define SEASONALITY_HPP (12)
> #endif (52)
>
> visual studio can compile and i'm able to use my class.
> I can't find the reason of this error; anyone has any ideas?
>
> Thank you very much for help.
> Bye
>
> Piero
>
Defy all challenges. Microsoft(R) Visual Studio 2008.