Re: quote.hpp problem

Posted by Dirk Eddelbuettel on
URL: http://quantlib.414.s1.nabble.com/Re-quote-hpp-problem-tp10949p10950.html

On 17 November 2005 at 22:49, Joseph Wang wrote:
|
| >It turns out that the suggested '-fpermissive' fixes it. From my build-logs,
| >it worked fine without it on Oct 21 with the then-current g++-4.0 (4.0.2-2,
| >judging from its changelog). The current one is 4.0.2-4 with the changed
| >allocator, and something must have changed along with it.
| >
| >But then given the speed with which things move around here, it probably has
| >long been updated in CVS anyway :)
| >
| >  
| >
| Yup....  The problem was that quote.hpp had a template with a #define
| macro that was confusing the compiler.  The solution was to include
| <ql/error.h> so that the macro gets expanded before the compiler sees it.

Dang. I remember that one from the discussion on the list.  

Thanks for the clue-bat.

Dirk

--
Statistics: The (futile) attempt to offer certainty about uncertainty.
         -- Roger Koenker, 'Dictionary of Received Ideas of Statistics'