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

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Building-problem-The-file-contains-a-character-that-cannot-be-represented-in-the-current-code-page-9-tp5116p5119.html

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