Re: inserting new class in quantlib

Posted by Toyin Akin on
URL: http://quantlib.414.s1.nabble.com/inserting-new-class-in-quantlib-tp5546p5547.html

Hi Piero,
 
Try inserting a hard return after the #endif statement (hit the enter key).
 
Toyin Akin.







> Date: Fri, 15 Feb 2008 11:11:49 +0100

> 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
>



Sounds like? How many syllables? Guess and win prizes with Search Charades!
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users