Patch for program_options<mingw>

Hello I'm attaching patch for program_options which fixes known problem with wstring in mingw. Regards, Janusz

Hi Janusz,
I'm attaching patch for program_options which fixes known problem with wstring in mingw.
I think I've fixed this problem already earlier today. Thanks for the patch, anyway. While we're at it, I see that many "dll" tests fail on mingw, for example options_description_test_dll. The error message is: d000000.o(.idata$2+0x0): multiple definition of `_head_boost_program_options_mgw_d_1_32_dll' C \Projects\results\bin\boost\libs\program_options\build\boost_program_options.dll\mingw\debug\boost_program_options-mgw-d-1_32.lib(d000000.o (.idata$2+0x0): first defined here d000001.o(.idata$5+0x0): multiple definition of `_imp___ZTVN5boost15program_options13untyped_valueE' C \Projects\results\bin\boost\libs\program_options\build\boost_program_options.dll\mingw\debug\boost_program_options-mgw-d-1_32.lib(d001197.o (.idata$5+0x0): first defined here d000002.o(.idata$5+0x0): multiple definition of `_imp___ZTVN5boost15program_options29value_semantic_codecvt_helperIcEE' C \Projects\results\bin\boost\libs\program_options\build\boost_program_options.dll\mingw\debug\boost_program_options-mgw-d-1_32.lib(d001211.o (.idata$5+0x0): first defined here d000003.o(.idata$7+0x0): multiple definition of `boost_program_options_mgw_d_1_32_dll_iname' C \Projects\results\bin\boost\libs\program_options\build\boost_program_options.dll\mingw\debug\boost_program_options-mgw-d-1_32.lib Do you have any idea what could be the reason? Thanks, Volodya

[...]
While we're at it, I see that many "dll" tests fail on mingw, for example options_description_test_dll. The error message is:
d000000.o(.idata$2+0x0): multiple definition of `_head_boost_program_options_mgw_d_1_32_dll' C [...] Do you have any idea what could be the reason?
I think it's problem with multiple same template instatiations; i tried to identify it, but unsuccessful. Maybe it's mingw bug? I'll investigate it in free time. Regards, Janusz
participants (2)
-
Janusz Piwowarski
-
Vladimir Prus