need help running EquityOption.cpp on VS 2008

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

need help running EquityOption.cpp on VS 2008

Nick Procyk
Hi,
I'm trying to run QL using VS 2008 on Vista.  In particular, I'm
interested in the EquityOption.cpp example.  I've installed doxygen,
boost_1_34_1, and the Microsoft Windows SDK for Visual Studio 2008.  I
opened gensrc_vc8.sln and upgraded to VS 2008 via the conversion
wizard.

I get the following 2 errors when I try to build:

fatal error U1077: '"C:\Program Files\doxygen\bin\doxygen.exe"' :
return code '0x1'
error PRJ0019: A tool returned an error code from "Performing Makefile
project actions" docs

I tried to follow
http://dave-programming.blogspot.com/2008/02/how-to-build-quantlib-090-using-visual.html
but got lost with the patch.  I would appreciate any help.


Thanks in advance,
Nick

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: need help running EquityOption.cpp on VS 2008

Luigi Ballabio

On Mar 21, 2008, at 11:57 PM, Nick Procyk wrote:

> I'm trying to run QL using VS 2008 on Vista.  In particular, I'm
> interested in the EquityOption.cpp example.  I've installed doxygen,
> boost_1_34_1, and the Microsoft Windows SDK for Visual Studio 2008.  I
> opened gensrc_vc8.sln and upgraded to VS 2008 via the conversion
> wizard.
>
> I get the following 2 errors when I try to build:
>
> fatal error U1077: '"C:\Program Files\doxygen\bin\doxygen.exe"' :
> return code '0x1'
> error PRJ0019: A tool returned an error code from "Performing Makefile
> project actions" docs

Hi Nick,
        if you're interested in the C++ examples, you don't need gensrc (it's
a component of the addins.)  Just download QuantLib 0.9.0 and convert
QuantLib_vc8.sln.  Dave's advice on using VC 2008 should work for
that---let us know if you get stuck.

Luigi


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: need help running EquityOption.cpp on VS 2008

Nick Procyk
Thank you Luigi for replying to my query.  I opened QuantLib_vc8.sln
in QuantLib-0.9.0.  I added an include to my boost/ folder but I'm
still getting the following error.

fatal error C1083: Cannot open include file: 'boost/config.hpp': No
such file or directory \QuantLib-0.9.0\QuantLib-0.9.0\ql\qldefines.hpp

I'm confused about boost --- do I need to compile it or is just enough
to download, unzip and reference it from VS 2008?

Nick



On Sat, Mar 22, 2008 at 8:23 AM, Luigi Ballabio
<[hidden email]> wrote:

>
> On Mar 21, 2008, at 11:57 PM, Nick Procyk wrote:
> > I'm trying to run QL using VS 2008 on Vista.  In particular, I'm
> > interested in the EquityOption.cpp example.  I've installed doxygen,
> > boost_1_34_1, and the Microsoft Windows SDK for Visual Studio 2008.  I
> > opened gensrc_vc8.sln and upgraded to VS 2008 via the conversion
> > wizard.
> >
> > I get the following 2 errors when I try to build:
> >
> > fatal error U1077: '"C:\Program Files\doxygen\bin\doxygen.exe"' :
> > return code '0x1'
> > error PRJ0019: A tool returned an error code from "Performing Makefile
> > project actions"      docs
>
> Hi Nick,
>        if you're interested in the C++ examples, you don't need gensrc (it's
> a component of the addins.)  Just download QuantLib 0.9.0 and convert
> QuantLib_vc8.sln.  Dave's advice on using VC 2008 should work for
> that---let us know if you get stuck.
>
> Luigi
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: need help running EquityOption.cpp on VS 2008

Nick Procyk
I was able to successfully build boost 1.34.1 with Visual Studio 2008.
 I then followed Dave's instructions as per
http://dave-programming.blogspot.com/2008/02/how-to-build-quantlib-090-using-visual.html

However I cannot build QuantLib_vc8.sln from VS 2008 Professional
Edition (it's definitely not Express, I think it's Pro version).  I
get a number of these errors for all the projects in the QuantLib_vc8
solution.

fatal error C1189: #error :  "unknown Microsoft
compiler" quantlib-0.9.0\quantlib-0.9.0\ql\config.msvc.hpp
DiscreteHedging
error BK1506 : cannot open file '.\build\vc80\Debug
CRTDLL\DiscreteHedging.sbr': No such file or directory  BSCMAKE
DiscreteHedging

Thanks in advance,
Nick


On Sat, Mar 22, 2008 at 9:24 AM, Nick Procyk <[hidden email]> wrote:

> Thank you Luigi for replying to my query.  I opened QuantLib_vc8.sln
> in QuantLib-0.9.0.  I added an include to my boost/ folder but I'm
> still getting the following error.
>
> fatal error C1083: Cannot open include file: 'boost/config.hpp': No
> such file or directory  \QuantLib-0.9.0\QuantLib-0.9.0\ql\qldefines.hpp
>
> I'm confused about boost --- do I need to compile it or is just enough
> to download, unzip and reference it from VS 2008?
>
> Nick
>
>
>
>
> On Sat, Mar 22, 2008 at 8:23 AM, Luigi Ballabio
> <[hidden email]> wrote:
> >
> > On Mar 21, 2008, at 11:57 PM, Nick Procyk wrote:
> > > I'm trying to run QL using VS 2008 on Vista.  In particular, I'm
> > > interested in the EquityOption.cpp example.  I've installed doxygen,
> > > boost_1_34_1, and the Microsoft Windows SDK for Visual Studio 2008.  I
> > > opened gensrc_vc8.sln and upgraded to VS 2008 via the conversion
> > > wizard.
> > >
> > > I get the following 2 errors when I try to build:
> > >
> > > fatal error U1077: '"C:\Program Files\doxygen\bin\doxygen.exe"' :
> > > return code '0x1'
> > > error PRJ0019: A tool returned an error code from "Performing Makefile
> > > project actions"      docs
> >
> > Hi Nick,
> >        if you're interested in the C++ examples, you don't need gensrc (it's
> > a component of the addins.)  Just download QuantLib 0.9.0 and convert
> > QuantLib_vc8.sln.  Dave's advice on using VC 2008 should work for
> > that---let us know if you get stuck.
> >
> > Luigi
> >
> >
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: need help running EquityOption.cpp on VS 2008

Dave Compton-2
Nick Procyk <quantnick <at> gmail.com> writes:

>
>
> fatal error C1189: #error :  "unknown Microsoft
> compiler" quantlib-0.9.0\quantlib-0.9.0\ql\config.msvc.hpp
>

Hi Nick,

Seeing this error makes me wonder if the quantlib patch for msvc 2008 has been
applied completely.  Are you using the patch program from
http://gnuwin32.sourceforge.net to apply the patches (both boost and quantlib)?
 If not I suggest you start over with a fresh copy of both code sets and apply
the patches using the patch program.  Directions for doing this are in the text
of the patches themselves.

- Dave




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: need help running EquityOption.cpp on VS 2008

Nick Procyk
Hi Dave,
I could not find the patch at http://gnuwin32.sourceforge.net so I
manually made the changes myself.  What exactly should I be
downloading (i.e. patch name)?

Thanks,
Nick


On Sun, Mar 23, 2008 at 9:57 AM, Dave Compton <[hidden email]> wrote:

> Nick Procyk <quantnick <at> gmail.com> writes:
>
> >
> >
> > fatal error C1189: #error :  "unknown Microsoft
> > compiler"     quantlib-0.9.0\quantlib-0.9.0\ql\config.msvc.hpp
> >
>
> Hi Nick,
>
> Seeing this error makes me wonder if the quantlib patch for msvc 2008 has been
> applied completely.  Are you using the patch program from
> http://gnuwin32.sourceforge.net to apply the patches (both boost and quantlib)?
>  If not I suggest you start over with a fresh copy of both code sets and apply
> the patches using the patch program.  Directions for doing this are in the text
> of the patches themselves.
>
> - Dave
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: need help running EquityOption.cpp on VS 2008

Dave Compton-2
Nick Procyk <quantnick <at> gmail.com> writes:

>
> What exactly should I be
> downloading (i.e. patch name)?
>

Hi Nick,

Use the link below to download a patch program.

http://gnuwin32.sourceforge.net/packages/patch.htm.

Then follow the instructions in the patches that I provided to apply the patch
to the boost and the quantlib code.  

Here, for example, are the instructions taken from the quantlib patch:

--------------------------------------------------------------------------------
To apply this patch using a dos command shell, save it into the same directory
as the uncompressed boost 1.34.1 code and type the following command:

type quantlib-0.9.0___vs2008___patch.txt | patch -p0

You will need to have the patch program in your %PATH% or use the full path name
to the patch program.
--------------------------------------------------------------------------------

When this process works, the output in the dos command shell will be a list of
files that have been patched.

- Dave




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: need help running EquityOption.cpp on VS 2008

Nick Procyk
Hi Dave,
Pardon my denseness... Where are the patch instructions located?

Then follow the instructions in the patches that I provided to apply the patch
to the boost and the quantlib code.

Thanks,
Nick



On Sun, Mar 23, 2008 at 11:00 AM, Dave Compton <[hidden email]> wrote:

> Nick Procyk <quantnick <at> gmail.com> writes:
>
> >
> > What exactly should I be
> > downloading (i.e. patch name)?
> >
>
> Hi Nick,
>
> Use the link below to download a patch program.
>
> http://gnuwin32.sourceforge.net/packages/patch.htm.
>
> Then follow the instructions in the patches that I provided to apply the patch
> to the boost and the quantlib code.
>
> Here, for example, are the instructions taken from the quantlib patch:
>
> --------------------------------------------------------------------------------
> To apply this patch using a dos command shell, save it into the same directory
> as the uncompressed boost 1.34.1 code and type the following command:
>
> type quantlib-0.9.0___vs2008___patch.txt | patch -p0
>
> You will need to have the patch program in your %PATH% or use the full path name
> to the patch program.
> --------------------------------------------------------------------------------
>
> When this process works, the output in the dos command shell will be a list of
> files that have been patched.
>
>
> - Dave
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: need help running EquityOption.cpp on VS 2008

Nick Procyk
Hi,
I reapplied the patch but I'm still getting the following errors:

fatal error C1189: #error :  "unknown Microsoft compiler"
\QuantLib-0.9.0\ql\config.msvc.hpp 188 QuantLib
error BK1506 : cannot open file '.\build\vc80\Debug\EquityOption.sbr':
No such file or directory  BSCMAKE  EquityOption

I'm not using Visual Studio 2008 Express (I'm using Professional
Edition) which I think is the cause.  Has anyone else
installed/configured QuantLib and Visual Studio 2008 Professional
Edition?

Thanks,
Nick



On Tue, Mar 25, 2008 at 5:49 PM, Nick Procyk <[hidden email]> wrote:

> Hi Dave,
> Pardon my denseness... Where are the patch instructions located?
>
> Then follow the instructions in the patches that I provided to apply the patch
> to the boost and the quantlib code.
>
> Thanks,
> Nick
>
>
>
>
> On Sun, Mar 23, 2008 at 11:00 AM, Dave Compton <[hidden email]> wrote:
> > Nick Procyk <quantnick <at> gmail.com> writes:
> >
> > >
> > > What exactly should I be
> > > downloading (i.e. patch name)?
> > >
> >
> > Hi Nick,
> >
> > Use the link below to download a patch program.
> >
> > http://gnuwin32.sourceforge.net/packages/patch.htm.
> >
> > Then follow the instructions in the patches that I provided to apply the patch
> > to the boost and the quantlib code.
> >
> > Here, for example, are the instructions taken from the quantlib patch:
> >
> > --------------------------------------------------------------------------------
> > To apply this patch using a dos command shell, save it into the same directory
> > as the uncompressed boost 1.34.1 code and type the following command:
> >
> > type quantlib-0.9.0___vs2008___patch.txt | patch -p0
> >
> > You will need to have the patch program in your %PATH% or use the full path name
> > to the patch program.
> > --------------------------------------------------------------------------------
> >
> > When this process works, the output in the dos command shell will be a list of
> > files that have been patched.
> >
> >
> > - Dave
> >
> >
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > QuantLib-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/quantlib-users
> >
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users