Re: QuantLib and Xcode

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib and Xcode

Keith Weintraub-2
Folks,
  I want to use QuantLib (and therefore Boost) on the Mac.

I built both of these successfully using the "configure" and "make"  
scripts that came with the distributions.

Is that the best way to go?

I have copied Bond.cpp from the examples folder and I am trying to  
compile and build that using Xcode. Compilation seems to work but I  
cannot get it to Link.

(I have built the boost libraries and include files as well).

I assume that I have some Link parameters wrong but maybe I need to  
build QuantLib and Boost differently.

As I am new to developing on the Mac I leave it to your expertise to  
lead me in the right direction.

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-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib and Xcode

tamasrs (Bugzilla)
Hello Keith,

please search the achieves since this question is already answered  
here (or on the dev forum). Briefly:
- you should tell to the compiler where is the header files: by  
default /usr/local/include (flag: -I/usr/local/include)
- tell the linker to use external library -lQuantLib and its default  
location /usr/local/lib (flag: -L/usr/local/lib -lQuantLib )
-double click on your Targets (name of your binary)on the left side  
panel to get the info panel. Then select build. Here you can set up  
many things as well as GCC 4.0 -- Preprocessing where you will find  
Preprocessor Macros and set to  _GLIBCXX_DEBUG=0 or remove it  
completely.


However I would suggest to use NetBeans C++, or Eclipse CDT instead of  
XCode. Xcode is great tool however if you want to use code completion  
IMHO XCode is not so great.(way behind the others..)..

Best,

Tamas

On 27 Feb 2009, at 15:41, Keith Weintraub wrote:

> Folks,
>  I want to use QuantLib (and therefore Boost) on the Mac.
>
> I built both of these successfully using the "configure" and "make"
> scripts that came with the distributions.
>
> Is that the best way to go?
>
> I have copied Bond.cpp from the examples folder and I am trying to
> compile and build that using Xcode. Compilation seems to work but I
> cannot get it to Link.
>
> (I have built the boost libraries and include files as well).
>
> I assume that I have some Link parameters wrong but maybe I need to
> build QuantLib and Boost differently.
>
> As I am new to developing on the Mac I leave it to your expertise to
> lead me in the right direction.
>
> 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-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users


------------------------------------------------------------------------------
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-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users