Re: QuantLib linking causes debugger crash on OS X whether QuantLib used or not.

Posted by tamasrs (Bugzilla) on
URL: http://quantlib.414.s1.nabble.com/Please-don-t-yell-at-me-tp12678p12681.html

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

On Wednesday 04 March 2009 22:43:28 Keith Weintraub wrote:

> OK. Here is more information:
>
> I have compiled and linked the following program:
>
>    #include <iostream>
>    #include <string>
>
>    int main()
>    {
>
>     std::cout << "Hello GDB How Art Thee" << std::endl;
>    }
>
>
> Note that QuantLib is not used anywhere. If I link with -lQuantLib gdb
> crashes. Whether I use gdb in Eclipse or out of Eclipse it crashes.
>
> If I just run the program from the command line it runs fine whether the
> program was linked with QuantLib or not.
>
> If you haven't seen any of my posts before please note that I have the same
> problem whether the program uses QuantLib or not.
>
> I am very puzzled but I am sure one of you smart people has the answer.
>
> Thanks for your time,
> KW
>
>
>
>
> ---------------------------------------------------------------------------
>--- 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


------------------------------------------------------------------------------
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