Posted by
tamasrs (Bugzilla) on
URL: http://quantlib.414.s1.nabble.com/Please-don-t-yell-at-me-tp12678p12683.html
Hello Keith,
you did not install QuantLib to its default location eg : /usr/local/lib
please go to your QuatLib folder:
cd /Users/kw/MyC++/QuantLib-0.9.7
and type:
sudo make install
(after giving your password the libs will be installed)
and compile your source with :
g++ -o qlTest -g -I/usr/local/include qlTest.cpp -L/usr/local/lib -lQuantLib
OR
if you don't want to install system wide (no need password) do:
cd /Users/kw/MyC++/QuantLib-0.9.7
../configure --prefix=/Users/kw/MyC++/QuantLib-0.9.7/build
make
make install
the QuantLib libs will be in : /Users/kw/MyC++/QuantLib-0.9.7/build/libs
and the includefiles will be in : /Users/kw/MyC++/QuantLib-0.9.7/build/includes
so compile your code with:
g++ -o qlTest -g -I/Users/kw/MyC++/QuantLib-0.9.7/build/includes qlTest.cpp -L/Users/kw/MyC++/QuantLib-0.9.7/build/libs -lQuantLib
I hope this will help,
Best,
Tamas
On Thursday 05 March 2009 13:54:47 Keith Weintraub wrote:
> Tamas,
> Here is what I did and got the same result.
>
>
>
> qlTest.cpp and qlTest2.cpp are the same program.
>
> The difference between the two build scripts is obvious. All
> references to QuantLib in qlTestBuild2.sh have been taken out.
>
> The executables both run fine from the command line.
>
> The qlTest program crashes the debugger:
>
> The info.plist files (I don't know what Mac OSX does with the "*.dSYM"
> directory structure) differ so I am including them here as well:
>
> (I hope the naming is obvious here).
>
> The only think I can think of that might be a little different is that
> I "built" boost. In other words I did the section 5.1 part of the
> boost installation page.
>
> I have checked and I think I have the latest version of Xcode as well:
>
> Here is the g++ version info:
>
> /Users/kw/MyC++/boost_1_38_0 $ g++ -dumpversion
> 4.0.1
>
> /Users/kw/MyC++/boost_1_38_0 $ g++ -version
> i686-apple-darwin9-g++-4.0.1: no input files
>
> And the gdb version info is in the debuggerCrash.txt file above.
>
> If there is something else that will help you help me please let me
> know.
>
> I really appreciate the help. I am also posting this to the quantlib-
> dev list (if it goes through).
>
> Thanks so much for your time and in advance for any future help!
>
> KW
>
>
>
> --
>
> On Mar 5, 2009, at 3:45 AM, Tamas Sashalmi wrote:
>
> > Hello Keith,
> >
> > I cannot reproduce your problem, please make sure you are using the
> > newest
> > xcode (it comes with updated gdb, gcc etc):
> >
> >
http://developer.apple.com/technology/xcode.html> >
> > Also please compile your example code from terminal instead of
> > eclipse.
> > (eclipse may use a special flag which cause the problem ) with -g
> > flag only
> > eg:
> >
> > g++ -o prgname -g prgsrc.cc -L/usr/local/lib -lQuantLib
> > and see if gdb is working or not with the produced binary.
> >
> > Best,
> >
> > Tamas
>
>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev