error message in testing QuantLib 1.1

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

error message in testing QuantLib 1.1

Dennis Zhang
Hi,

I am using QuantLib 1.1 and Boost 1.46 with VC++ 2008 on Win 7 Professional
system. When I am trying to do the example TestingQuantLib at the following
link, it failed by giving the error message below. Also when I build the
QuantLib before running the example, error 4819 also exists but the build
process is successful though.

may be it is more useful to post the error log here. I am sorry if this is
bothering.

...
1>c:\quantlib\quantlib-1.1\ql\math\randomnumbers\primitivepolynomials.h :
warning C4819: The file contains a character that cannot be represented in the
current code page (936). Save the file in Unicode format to prevent data loss
...
1>c:\quantlib\quantlib-1.1\ql\math\matrix.hpp(570) : warning C4996:
'std::transform': Function call with parameters that may be unsafe - this call
relies on the caller to check that the passed values are correct. To disable
this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use
Visual C++ 'Checked Iterators'
...
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>Linking...
1>LINK : fatal error LNK1104: cannot open file 'QuantLib-vc90-mt-gd.lib'
1>Build log was saved at "file://c:\Users\zhyp\Documents\Visual Studio
2008\Projects\TestingQuantLib\TestingQuantLib\Debug\BuildLog.htm"
1>TestingQuantLib - 1 error(s), 122 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: error message in testing QuantLib 1.1

Luigi Ballabio

Hi Dennis,
        the warning C4819 is not a problem; the compiler is simply telling you
that there are non-ASCII characters in the source and that this might be
a problem (but actually it's not, because they're in the comments: we
acknowledge the author of the original code, that goes by the name of
Jäckel.  The umlaut is what's giving the compiler the fits.)

The actual linking error is unrelated, and is due to a mismatch of
settings between your project and the library you compiled.   The linker
is looking for QuantLib-vc90-mt-gd.lib, which is the debug version of
the library.  You might have compiled the release version, which has a
different name (you can check it in the c:\quantlib\quantlib-1.1\lib
folder.)  The thing should work once you compile your project in release
mode, too.

Luigi



On Mon, 2011-07-11 at 02:41 +0000, Dennis Zhang wrote:

> I am using QuantLib 1.1 and Boost 1.46 with VC++ 2008 on Win 7 Professional
> system. When I am trying to do the example TestingQuantLib at the following
> link, it failed by giving the error message below. Also when I build the
> QuantLib before running the example, error 4819 also exists but the build
> process is successful though.
>
> may be it is more useful to post the error log here. I am sorry if this is
> bothering.
>
> ...
> 1>c:\quantlib\quantlib-1.1\ql\math\randomnumbers\primitivepolynomials.h :
> warning C4819: The file contains a character that cannot be represented in the
> current code page (936). Save the file in Unicode format to prevent data loss
> ...
> 1>c:\quantlib\quantlib-1.1\ql\math\matrix.hpp(570) : warning C4996:
> 'std::transform': Function call with parameters that may be unsafe - this call
> relies on the caller to check that the passed values are correct. To disable
> this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use
> Visual C++ 'Checked Iterators'
> ...
> 1>Compiling manifest to resources...
> 1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
> 1>Copyright (C) Microsoft Corporation.  All rights reserved.
> 1>Linking...
> 1>LINK : fatal error LNK1104: cannot open file 'QuantLib-vc90-mt-gd.lib'
> 1>Build log was saved at "file://c:\Users\zhyp\Documents\Visual Studio
> 2008\Projects\TestingQuantLib\TestingQuantLib\Debug\BuildLog.htm"
> 1>TestingQuantLib - 1 error(s), 122 warning(s)
> ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> QuantLib-dev mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-dev

--

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
-- Brian W. Kernighan



------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: error message in testing QuantLib 1.1

Dennis Zhang
Luigi, thanks for your explanation and it works as a charm.

Thanks,
Dennis





------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev