Hi Noel,
not sure if there's any difference, but on my Ubuntu system I
export the variables as CPATH and LIBRARY_PATH.
Luigi
On Tue, Feb 28, 2012 at 4:54 AM, Noel Kippers <
[hidden email]> wrote:
> Hello Everyone. I am a newbie to Quantlib and Unix and I apologize for for
> another "getting started question.
>
> I have installed boost and quantlib successfully on a Mac OS X 10.7.3 using
> the directions posted at
http://quantlib.org/install/macosx.shtml and have
> no problem compiling using the provided code
>
> g++ -I/opt/local/include/ -I/opt/local/include/boost BermudanSwaption.cpp \
> -o bermudanswaption -L/opt/local/lib/ -lQuantLib
>
> and followed the suggestion to create a .bash_profile (location:
> /Users/username/.bash_profile) with the following lines
>
> export CPLUS_INCLUDE_PATH=/opt/local/include
> export C_INCLUDE_PATH=/opt/local/include
> export DYLD_LIBRARY_PATH=/opt/local/lib
>
> I created the file by
>
> "touch .bash_profile" .
> "open -e .bash_profile" and included the above commands.
> ". .bash_profile" and restarted the terminal
>
>
> and figured I should be able to compile the code using
>
> g++ BermudanSwaption.cpp -o bermudanswaption -lQuantLib
>
> but the code will not compile if I remove any of the -I or -L commands.
>
> Any suggestion? Thank you very much for your help?
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users