Login  Register

Re: AmericanOption compiler errors

Posted by Luigi Ballabio on Mar 02, 2005; 6:03am
URL: http://quantlib.414.s1.nabble.com/AmericanOption-compiler-errors-tp3643p3646.html

On 03/01/05 22:27:47, [hidden email] wrote:
> I have recently installed QuantLib and am trying to compile the
> AmericanOption.cpp example.  There doesn't appear to be a makefile for
> the g++.  I've tried to build one myself, however I keep getting  
> thousands of undefined referencej errors.  Any attempt to reuse the bcc  
> makefile results in "Missing Separator" errors.  Is there a makefile  
> available for the g++ compiler?

Kristian,
        what platform are you on? If linux or unix, as David pointed out,  
"make examples" will compile AmericanOption as well as all the others.
If you're using g++ on Windows, there's no Makefile currently available;  
but the example can be built simply with:
g++ AmericanOption.cpp -lQuantLib -L/path/where/libQuantLib/is

Hope this helps,
                Luigi

----------------------------------------

fix, n.,v.
        What one does when a problem has been reported too many times
        to be ignored.
-- the Jargon file