Link errors with wserialization on MSVC 7.1 (boost 1.33)

I'm using VC 7.1 with MFC and boost 1.33 serialization. I'm getting these link errors. Any one have this problem? I had more link errors with 1.32 I just didn't use Unicode to get around the link errors. But I'd really really like to have Unicode XML files. Linking... libboost_wserialization-vc71-mt-sgd-1_33.lib(xml_wgrammar.obj) : error LNK2005: _iswdigit already defined in libcmtd.lib(_wctype.obj) libboost_wserialization-vc71-mt-sgd-1_33.lib(xml_wgrammar.obj) : error LNK2005: _iswxdigit already defined in libcmtd.lib(_wctype.obj) libboost_wserialization-vc71-mt-sgd-1_33.lib(basic_text_wiprimitive.obj) : error LNK2005: _iswspace already defined in libcmtd.lib(_wctype.obj) libboost_wserialization-vc71-mt-sgd-1_33.lib(xml_wgrammar.obj) : warning LNK4006: _iswdigit already defined in libcmtd.lib(_wctype.obj); second definition ignored libboost_wserialization-vc71-mt-sgd-1_33.lib(xml_wgrammar.obj) : warning LNK4006: _iswxdigit already defined in libcmtd.lib(_wctype.obj); second definition ignored libboost_wserialization-vc71-mt-sgd-1_33.lib(basic_text_wiprimitive.obj) : warning LNK4006: _iswspace already defined in libcmtd.lib(_wctype.obj); second definition ignored

I don't know what libcmtd.lib is but it would seem you could get through this by seting the application build properties to force linkage in spite of duplicated symbols. Robert Ramey Rodger Bernstein wrote:
I'm using VC 7.1 with MFC and boost 1.33 serialization. I'm getting these link errors. Any one have this problem? I had more link errors with 1.32 I just didn't use Unicode to get around the link errors. But I'd really really like to have Unicode XML files.
Linking... libboost_wserialization-vc71-mt-sgd-1_33.lib(xml_wgrammar.obj) : error LNK2005: _iswdigit already defined in libcmtd.lib(_wctype.obj) libboost_wserialization-vc71-mt-sgd-1_33.lib(xml_wgrammar.obj) : error LNK2005: _iswxdigit already defined in libcmtd.lib(_wctype.obj) libboost_wserialization-vc71-mt-sgd-1_33.lib(basic_text_wiprimitive.obj) : error LNK2005: _iswspace already defined in libcmtd.lib(_wctype.obj) libboost_wserialization-vc71-mt-sgd-1_33.lib(xml_wgrammar.obj) : warning LNK4006: _iswdigit already defined in libcmtd.lib(_wctype.obj); second definition ignored libboost_wserialization-vc71-mt-sgd-1_33.lib(xml_wgrammar.obj) : warning LNK4006: _iswxdigit already defined in libcmtd.lib(_wctype.obj); second definition ignored libboost_wserialization-vc71-mt-sgd-1_33.lib(basic_text_wiprimitive.obj) : warning LNK4006: _iswspace already defined in libcmtd.lib(_wctype.obj); second definition ignored
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

I'm using VC 7.1 with MFC and boost 1.33 serialization. I'm getting these link errors. Any one have this problem?
This link might help, it looks like you've got a runtime library mismatch problem. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HT...

When I see this kind of error from the linker it is usually because the threading settings from the library don't match those of the application. --- Rodger Bernstein <rbernstein@digitalriver.com> wrote:
I'm using VC 7.1 with MFC and boost 1.33 serialization. I'm getting these link errors. Any one have this problem? I had more link errors with 1.32 I just didn't use Unicode to get around the link errors. But I'd really really like to have Unicode XML files.
Linking...
libboost_wserialization-vc71-mt-sgd-1_33.lib(xml_wgrammar.obj)
: error LNK2005: _iswdigit already defined in libcmtd.lib(_wctype.obj)
libboost_wserialization-vc71-mt-sgd-1_33.lib(xml_wgrammar.obj)
: error LNK2005: _iswxdigit already defined in libcmtd.lib(_wctype.obj)
libboost_wserialization-vc71-mt-sgd-1_33.lib(basic_text_wiprimitive.obj)
: error LNK2005: _iswspace already defined in libcmtd.lib(_wctype.obj)
libboost_wserialization-vc71-mt-sgd-1_33.lib(xml_wgrammar.obj)
: warning LNK4006: _iswdigit already defined in libcmtd.lib(_wctype.obj); second definition ignored
libboost_wserialization-vc71-mt-sgd-1_33.lib(xml_wgrammar.obj)
: warning LNK4006: _iswxdigit already defined in libcmtd.lib(_wctype.obj); second definition ignored
libboost_wserialization-vc71-mt-sgd-1_33.lib(basic_text_wiprimitive.obj)
: warning LNK4006: _iswspace already defined in libcmtd.lib(_wctype.obj); second definition ignored
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

That wasn't it. I know I have the right libs. The lib is automatically linked in by the serialization headers. It's just not working for some reason. "Mat Marcus" <mat-lists@emarcus.org> wrote in message news:20050822223121.28653.qmail@web35511.mail.mud.yahoo.com...
When I see this kind of error from the linker it is usually because the threading settings from the library don't match those of the application.
--- Rodger Bernstein <rbernstein@digitalriver.com> wrote:
I'm using VC 7.1 with MFC and boost 1.33 serialization. I'm getting these link errors. Any one have this problem? I had more link errors with 1.32 I just didn't use Unicode to get around the link errors. But I'd really really like to have Unicode XML files.
Linking...
libboost_wserialization-vc71-mt-sgd-1_33.lib(xml_wgrammar.obj)
: error LNK2005: _iswdigit already defined in libcmtd.lib(_wctype.obj)
libboost_wserialization-vc71-mt-sgd-1_33.lib(xml_wgrammar.obj)
: error LNK2005: _iswxdigit already defined in libcmtd.lib(_wctype.obj)
libboost_wserialization-vc71-mt-sgd-1_33.lib(basic_text_wiprimitive.obj)
: error LNK2005: _iswspace already defined in libcmtd.lib(_wctype.obj)
libboost_wserialization-vc71-mt-sgd-1_33.lib(xml_wgrammar.obj)
: warning LNK4006: _iswdigit already defined in libcmtd.lib(_wctype.obj); second definition ignored
libboost_wserialization-vc71-mt-sgd-1_33.lib(xml_wgrammar.obj)
: warning LNK4006: _iswxdigit already defined in libcmtd.lib(_wctype.obj); second definition ignored
libboost_wserialization-vc71-mt-sgd-1_33.lib(basic_text_wiprimitive.obj)
: warning LNK4006: _iswspace already defined in libcmtd.lib(_wctype.obj); second definition ignored
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

I'm using VC 7.1 with MFC and boost 1.33 serialization. I'm getting these link errors. Any one have this problem? I had more link errors with 1.32 I just didn't use Unicode to get around the link errors. But I'd really really like to have Unicode XML files.
That hits regex users as well, but only very infrequently: the cause has been diagnosed here: http://www.unixwiz.net/archives/2004/11/ Whether this is any help I don't know, but I hope it triggers some kind of eureka moment for you :-) John.
participants (5)
-
John Maddock
-
Mat Marcus
-
Nigel Stewart
-
Robert Ramey
-
Rodger Bernstein