Login  Register

Re: AmericanOption compiler errors

Posted by kristian_johnson on Mar 02, 2005; 6:40am
URL: http://quantlib.414.s1.nabble.com/AmericanOption-compiler-errors-tp3643p3644.html

Thanks David.  It turns out that my biggest problem is that the Makefile didn't exist on my system for some reason.  Either the configure didn't run properly the first time or I deleted it somehow.  I reran configure and the gnu Makefile appeared.  From there, your changes worked great.
-------------- Original message --------------

> Hi Kristian,
>
> The supplied makefile actually is a GNU makefile. For some strange
> reason a line required to define the 'all' target is commented out
> though. You have two easy options to get the example going.
>
> 1. Use the command "make examples" instead of "make" and this will go
> straight to the relevant target.
>
> 2. Look inside the makefile and find the line that looks like:
> #bin_PROGRAMS = AmericanOption$(EXEEXT)
> Remove the comment (# sign) and it should work with just plain make.
>
> You can use the same approach to compile all the other examples as well.
>
> Cheers,
>
> David.
>
>