|
Boost : |
Subject: Re: [boost] [log] Wide Character Backend file problems
From: Sivaram Kannan (siva.devel_at_[hidden])
Date: 2010-08-15 15:50:16
Hi,
wseverity_logger_mt did the trick. Did not notice you mentioned it earlier.
Thanks a lot for your great response. Can you also suggest something about
the warning?
Thanks again.
Siva.
On Sun, Aug 15, 2010 at 11:37 PM, Sivaram Kannan <siva.devel_at_[hidden]>wrote:
> Hi,
>
>
>> Logging sources should also be wide, so you should be using
>> wseverity_logger_mt.
>>
>> I suggest you to build the library with the BOOST_LOG_USE_WCHAR_T macro
>> defined. This will disable any narrow-character support in the library. Then
>> you can try compiling your code and the parts that fail to link will
>> highlight the places you have to modify in order to switch to wide character
>> logging.
>>
>>
> No luck with this too. I compiled with BOOST_LOG_USE_WCHAR_T. My program
> compiles without any problems but the log did not get created. Here is the
> actual warning that I am getting. Guess this is something to do with my
> global declaration.
>
> c:\documents and settings\administrator\my
>> documents\softwares\boost_1_43_0\boost\log\sources\global_logger_storage.hpp(136)
>> : warning C4996: 'sprintf': This function or variable may be unsafe.
>> Consider using sprintf_s instead. To disable deprecation, use
>> _CRT_SECURE_NO_WARNINGS. See online help for details.
>
> c:\program files\microsoft visual studio
>> 9.0\vc\include\stdio.h(366) : see declaration of 'sprintf'
>
> c:\documents and settings\administrator\my
>> documents\softwares\boost_1_43_0\boost\log\sources\global_logger_storage.hpp(122)
>> : while compiling class template member function 'void
>> boost::log_mt_nt5::sources::aux::logger_singleton<TagT>::init_instance(void)'
>
> with
>
> [
>
> TagT=cli_log
>
> ]
>
> c:\documents and settings\administrator\my documents\visual studio
>> 2008\projects\boostlog\boostlog\logsink.h(54) : see reference to class
>> template instantiation
>> 'boost::log_mt_nt5::sources::aux::logger_singleton<TagT>' being compiled
>
> with
>
> [
>
> TagT=cli_log
>
> ]
>
>
> Thanks,
> Siva.
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk