New to Quantlib - build errors using VS7.1?

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

New to Quantlib - build errors using VS7.1?

Robert.Kitching
I've recently downloaded quantlib 0.3.14 and I'm trying to build for the
first time but without success.

Steps:

- Opened the visual studio 7.1 solution
- To include Boost (v. 1_33_1) added the headers and lib to the VS
config, ie under Projects/VC++ Directories/include files & library files
respectively.
- Clicked "Build Solution" without no other tampering.

But the build fails (in either debug or release) with the following
errors:

* error C2065: '_Myoff' : undeclared identifier  (from vector.h at line
1114)
* fatal error LNK1104: cannot open file '\Program
Files\Quantlib\QuantLib-0.3.14\lib\QuantLib-vc71-mt-gd-0_3_14.lib'
(related to various files)



Maybe these are trivial things but I'd be grateful for help to get over
this as I havent been able to find the same issue in the archives.






------------------------------------------------------------------------
For more information about Barclays Capital, please visit our web site at http://www.barcap.com.

Internet communications are not secure and therefore the Barclays Group does not accept legal responsibility for the contents of this message.  Although the Barclays Group operates anti-virus programmes, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed.  Any views or opinions presented are solely those of the author and do not necessarily represent those of the Barclays Group.  Replies to this email may be monitored by the Barclays Group for operational or business reasons.
------------------------------------------------------------------------


Reply | Threaded
Open this post in threaded view
|

Re: New to Quantlib - build errors using VS7.1?

Luigi Ballabio

Hi,

On Thu, 2006-12-28 at 14:06 +0000, [hidden email]
wrote:

> I've recently downloaded quantlib 0.3.14 and I'm trying to build for the
> first time but without success.
>
> Steps:
>
> - Opened the visual studio 7.1 solution
> - To include Boost (v. 1_33_1) added the headers and lib to the VS
> config, ie under Projects/VC++ Directories/include files & library files
> respectively.
> - Clicked "Build Solution" without no other tampering.
>
> But the build fails (in either debug or release) with the following
> errors:
>
> * error C2065: '_Myoff' : undeclared identifier  (from vector.h at line
> 1114)
> * fatal error LNK1104: cannot open file '\Program
> Files\Quantlib\QuantLib-0.3.14\lib\QuantLib-vc71-mt-gd-0_3_14.lib'
> (related to various files)

The second error is just issued because the examples and test suite
expected to find the library. The first one is what prevented the
library from being built, and is kind of puzzling. since I have no
"vector.h" in my VC7, Boost or QuantLib installation. Your environment
seems to be picking it up from some other include directory, which it
shouldn't. Maybe you have some INCLUDE environment variable left from a
previous installation? What file does VC open when you double-click on
the error?

Later,
        Luigi


----------------------------------------

Any software problem can be solved by adding another layer of
indirection.
-- Steven M. Bellovin