program options, link error on wide char support
I'm having a problem with the wchar_t functions on windows with VS .Net 2003.
I compiled with
bjam "-sTOOLS=vc-7_1" -sBOOST_LIB_DIAGNOSTIC --without-python install
In a program with a _tmain (wchar_t argv), I have:
#ifdef BOOST_NO_STD_WSTRING
cout << "No standard wstring! " << BOOST_NO_STD_WSTRING << endl; #endif
cout << "Stdlib version: " << BOOST_STDLIB << endl;
wstring wstr = L"abc";
string str = "abc";
str = boost::program_options::to_internal(wstr);
I get:
error LNK2019: unresolved external symbol "class
std::basic_string
participants (1)
-
John Gardner