Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Help-tp14880p14893.html
Hello,
I've had a look at the page you linked. It made you install the
Boost headers in a non-standard location, and the compiler can't find
it. When you compile, you'll have to add the location of the Boost
headers to the compiler command line. The way to do that depends on
the way you're compiling your program, so you'll have to write back
and tell us how you're doing it.
Second, the backslash as a path separator only works on Windows, so
you should write
#include<ql/quantlib.hpp>
instead of
#include<ql\quantlib.hpp>
Later,
Luigi
On Wed, Jan 22, 2014 at 2:12 PM, Mbongo Nkounga Jeffrey Ted Johnattan
<
[hidden email]> wrote:
>
> Hi all,
>
> I have just installed the quantlib software on my computer by following the
> steps given on :
http://quantess.net/2012/09/ 26/quantlib-get-it-working-on-
> ubuntu/.
>
> Now, when I am trying to run the program below, I'm getting the following
> message: ql\quantlib.hpp: No such file or directory compilation terminated
> or fatal error: boost\algorithmstring.hpp: No such file or directory
> compilation terminated.
>
>
> ///usr/local/lib/include<ql\quantlib.hpp>
>
> #include<ql\quantlib.hpp>
> using namespace QuantLib;
>
> int main(int, char*[]){
>
> // Matrix declaration and population
> Matrix A(2,2);
> A[0][0] = 1; A[0][1] = 2;
> A[1][0] = 3; A[1][1] = 4;
>
> Matrix B(2,2);
> B[0][0] = 5; B[0][1] = 6;
> B[1][0] = 7; B[1][1] = 8;
>
> // Outputting
> std::cout << "Matrix A :" << std::endl << A << std::endl;
> std::cout << "Matrix B :" << std::endl << B << std::endl;
> std::cout << "A + B :" << std::endl << A + B << std::endl;
>
> return 0;
>
>
> }
>
> Please help me.
>
> Thanks
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
>
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk> _______________________________________________
> QuantLib-users mailing list
>
[hidden email]
>
https://lists.sourceforge.net/lists/listinfo/quantlib-users>
--
<
https://implementingquantlib.blogspot.com>
<
https://twitter.com/lballabio>
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users