experimental

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

experimental

Lutz v. Grafenstein-2
Hi

i get following build errors compiling QuantLib-0.9.6 on a sparc / gcc

known issue?

cheers

lutz

In file included from ../../../ql/issuer.hpp:27,
                 from ../../../ql/experimental/credit/cdsoption.hpp:28,
                 from cdsoption.cpp:20:
../../../ql/default.hpp:32: error: expected identifier before numeric
constant
../../../ql/default.hpp:32: error: expected `}' before numeric constant
../../../ql/default.hpp:32: error: expected unqualified-id before
numeric constant
../../../ql/default.hpp:38: error: expected class-name before '{' token
../../../ql/default.hpp:40: error: expected `,' or `...' before '&' token
../../../ql/default.hpp:43: error: ISO C++ forbids declaration of `Date'
with no type
../../../ql/default.hpp:44: error: `Date' does not name a type
../../../ql/default.hpp:45: error: `Real' does not name a type
../../../ql/default.hpp:46: error: `Seniority' does not name a type
../../../ql/default.hpp:49: error: `Date' does not name a type
../../../ql/default.hpp:50: error: `Rate' does not name a type
../../../ql/default.hpp:51: error: `Seniority' does not name a type
../../../ql/default.hpp:53: error: `AcyclicVisitor' has not been declared
../../../ql/default.hpp:53: error: ISO C++ forbids declaration of
`parameter' with no type
../../../ql/default.hpp:61: error: expected declaration before '}' token
In file included from ../../../ql/issuer.hpp:27,
                 from ../../../ql/experimental/credit/cdsoption.hpp:28,
                 from cdsoption.cpp:20:
../../../ql/default.hpp:24:1: unterminated #ifndef
In file included from ../../../ql/experimental/credit/cdsoption.hpp:28,
                 from cdsoption.cpp:20:
../../../ql/issuer.hpp:24:1: unterminated #ifndef
In file included from cdsoption.cpp:20:
../../../ql/experimental/credit/cdsoption.hpp:24:1: unterminated #ifndef
make[4]: *** [cdsoption.lo] Error 1
make[4]: Leaving directory
`/etc/orc/libsrc/QuantLib-0.9.6/ql/experimental/credit'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/etc/orc/libsrc/QuantLib-0.9.6/ql/experimental'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/etc/orc/libsrc/QuantLib-0.9.6/ql'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/etc/orc/libsrc/QuantLib-0.9.6/ql'
make: *** [all-recursive] Error 1


This e-mail is confidential and may contain legally privileged information. It is intended only for the addressees. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: experimental

Lutz v. Grafenstein-2
probably just a missing #include in

ql/default.hpp

and the next one...:

In file included from ../../../ql/experimental/credit/all.hpp:7,
                 from ../../../ql/experimental/all.hpp:7,
                 from ../../../ql/quantlib.hpp:42,
                 from ../../../ql/default.hpp:28,
                 from ../../../ql/issuer.hpp:27,
                 from ../../../ql/experimental/credit/cdsoption.hpp:28,
                 from cdsoption.cpp:20:
../../../ql/experimental/credit/nthtodefault.hpp:71: error: `Issuer' was not declared in this scope


Lutz v. Grafenstein schrieb:

>Hi
>
>i get following build errors compiling QuantLib-0.9.6 on a sparc / gcc
>
>known issue?
>
>cheers
>
>lutz
>
>In file included from ../../../ql/issuer.hpp:27,
>                 from ../../../ql/experimental/credit/cdsoption.hpp:28,
>                 from cdsoption.cpp:20:
>../../../ql/default.hpp:32: error: expected identifier before numeric
>constant
>../../../ql/default.hpp:32: error: expected `}' before numeric constant
>../../../ql/default.hpp:32: error: expected unqualified-id before
>numeric constant
>../../../ql/default.hpp:38: error: expected class-name before '{' token
>../../../ql/default.hpp:40: error: expected `,' or `...' before '&' token
>../../../ql/default.hpp:43: error: ISO C++ forbids declaration of `Date'
>with no type
>../../../ql/default.hpp:44: error: `Date' does not name a type
>../../../ql/default.hpp:45: error: `Real' does not name a type
>../../../ql/default.hpp:46: error: `Seniority' does not name a type
>../../../ql/default.hpp:49: error: `Date' does not name a type
>../../../ql/default.hpp:50: error: `Rate' does not name a type
>../../../ql/default.hpp:51: error: `Seniority' does not name a type
>../../../ql/default.hpp:53: error: `AcyclicVisitor' has not been declared
>../../../ql/default.hpp:53: error: ISO C++ forbids declaration of
>`parameter' with no type
>../../../ql/default.hpp:61: error: expected declaration before '}' token
>In file included from ../../../ql/issuer.hpp:27,
>                 from ../../../ql/experimental/credit/cdsoption.hpp:28,
>                 from cdsoption.cpp:20:
>../../../ql/default.hpp:24:1: unterminated #ifndef
>In file included from ../../../ql/experimental/credit/cdsoption.hpp:28,
>                 from cdsoption.cpp:20:
>../../../ql/issuer.hpp:24:1: unterminated #ifndef
>In file included from cdsoption.cpp:20:
>../../../ql/experimental/credit/cdsoption.hpp:24:1: unterminated #ifndef
>make[4]: *** [cdsoption.lo] Error 1
>make[4]: Leaving directory
>`/etc/orc/libsrc/QuantLib-0.9.6/ql/experimental/credit'
>make[3]: *** [all-recursive] Error 1
>make[3]: Leaving directory `/etc/orc/libsrc/QuantLib-0.9.6/ql/experimental'
>make[2]: *** [all-recursive] Error 1
>make[2]: Leaving directory `/etc/orc/libsrc/QuantLib-0.9.6/ql'
>make[1]: *** [all] Error 2
>make[1]: Leaving directory `/etc/orc/libsrc/QuantLib-0.9.6/ql'
>make: *** [all-recursive] Error 1
>
>
>
>


This e-mail is confidential and may contain legally privileged information. It is intended only for the addressees. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: experimental

Luigi Ballabio
In reply to this post by Lutz v. Grafenstein-2
On Fri, 2008-08-22 at 12:37 +0200, Lutz v. Grafenstein wrote:
> i get following build errors compiling QuantLib-0.9.6 on a sparc / gcc
>
> known issue?

No, it's not known---it compiled cleanly on all the platforms I tried.
I'll try and have a look.

Thanks for the report,
        Luigi


--

It is always the best policy to tell the truth, unless, of course,
you are an exceptionally good liar.
-- Jerome K. Jerome



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: experimental

Luigi Ballabio
In reply to this post by Lutz v. Grafenstein-2
On Fri, 2008-08-22 at 12:37 +0200, Lutz v. Grafenstein wrote:
> i get following build errors compiling QuantLib-0.9.6 on a sparc / gcc

Lutz,
        as reported by your compiler, the original error (i.e., the one that
triggers the error cascade) seems to be:


> ../../../ql/default.hpp:32: error: expected identifier before numeric
> constant

but line 32 of default.hpp seems harmless enough---it is:

    enum Seniority { SEN, SUB, SEC, TI0, TI1, PCL, AnySeniority };

Is there any chance that any of the above (SEN, SUB etc.) is defined as
a macro by your compiler?  May you have a look at the preprocessor
output?  If not, you can try adding

#ifdef SEN
#error SEN is a macro
#endif

(and a similar block for all enum values) before the above line and see
if your compiler complains.

Later,
        Luigi


--

A little inaccuracy sometimes saves tons of explanation.
-- H.H. Munro, "Saki"



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users