Vladimir Prus wrote:
<cut />
Sorry for the delay; I was away from my computer for a couple of days. So, I even tried your solution before you mentioned it (following the online manual for Program Options, I presume) and it didn't work.
1. Replace char* argv[] with wchar_t *arv[]. 2. Use 'wstring' as the type of your options, not 'string'.
The compiler (VC8) casts: error C2665: 'boost::program_options::basic_command_line_parser<charT>::basic_command_line_parser' : none of the 3 overloads could convert all the argument types with [ charT=char ] c:\program files\boost\boost_1_34_0\boost\program_options\parsers.hpp(98): could be 'boost::program_options::basic_command_line_parser<charT>::basic_command_line_parser(int,charT *[])' with [ charT=char ] while trying to match the argument list '(int, wchar_t *[])' Your opinion? TIA!