
12 Jun
2010
12 Jun
'10
2:09 p.m.
Diederick C. Niehorster wrote:
Hi All,
I use program_options happily. One minor annoyance is that the headers somewhere seems to specify which version of the library (the exact file name) they want to link with. I've tried setting "#define BOOST_PROGRAM_OPTIONS_NO_LIB ON" that I found by googling, but it made no difference.
I think you have somehow set that incorrectly. Setting BOOST_PROGRAM_OPTIONS_NO_LIB to 1 globally and then recompiling all modules that use program_option should disable auto-linking. If it still kicks in, it means you either have no set this define for some module, or have not rebuilt it. - Volodya