Building problem:The file contains a character that cannot be represented in the current code page (936)

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

Building problem:The file contains a character that cannot be represented in the current code page (936)

silhouette.n
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Building problem:The file contains a character that cannot be represented in the current code page (936)

Luigi Ballabio
On Thu, 2006-10-19 at 19:08 -0400, Yulei Gong wrote:

> I encounter the following error message during building quantlib
> -0.3.13. And the message occur repetitively.
>  
> y:\quant\quantlib-0.3.13\quantlib-0.3.13\ql\calendars\argentina.cpp :
> 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
>  
> and
> c:\program files\microsoft visual studio 8\vc\include\algorithm(685) :
> warning C4996: 'std::_Transform' was declared deprecated
>  
> can someone tell me how to fix them?

Yulei,
        these warnings (at least the second one) should be fixed already. Did
you use the provided Visual Studio 8 solution (QuantLib_vc8.sln) or did
you let VC8 convert QuantLib.sln, which is the VC7 one?

Later,
        Luigi



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

Glendower: I can call spirits from the vasty deep.
Hotspur: Why, so can I, or so can any man;
But will they come when you do call for them?
-- King Henry the Fourth Part I, Act III, Scene I




Reply | Threaded
Open this post in threaded view
|

Re: Building problem:The file contains a character that cannot be represented in the current code page (936)

silhouette.n
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Building problem:The file contains a character that cannot be represented in the current code page (936)

Luigi Ballabio
On Sat, 2006-10-21 at 23:33 -0400, Yulei Gong wrote:

>     I follow your instruction on wilmott.com
>     - open VC++ Express;
>     - Choose "Options..." from the "Tools" menu;
>     - Choose "Projects and Solutions/VC++ Directories" in the tree on
> the left-hand side of the dialog;  
>     - Choose "Include files" from the pull-down menu at the top right
> of the dialog;
>     - Add "C:\Boost\include\boost_1_31_1" or the equivalent if you
> have another version;
>     - Choose "Library files" from the pull-down menu at the top right
> of the dialog;
>     - Add "C:\Boost\lib".
>    
>     The deprecated problem seemed to be fixed now.
>  
>     But the error of
>     c:\quantlib-0.3.13\quantlib-0.3.13\ql\math\cubicspline.hpp :
> 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
>     still persists almost for every .hpp file.

This might be due to your computer having a different locale---it
doesn't happen on my machine. Anyway, it's just a warning and should not
affect the compiled library. If you want, you can remove it by adding
the line

#pragma warning(disable: 4819)

to the file ql/config.msvc.hpp


>    And I also encounter the following errors that I didn't notice
> before
>    
>     LINK : fatal error LNK1104: cannot open file
> 'libboost_unit_test_framework-vc80-mt-gd-1_33_1.lib'

Do you have such file in C:\Boost\lib?


>    and
>     LINK : bin/SwapValuation-vc80-mt-gd.exe not found or not built by
> the last incremental link; performing full link

This is just a message from the linker about the operations it's
performing. You can disregard it.

Later,
        Luigi


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

Testing can never demonstrate the absence of errors in software, only
their presence.
-- W.E. Dijkstra