Boost logo

Boost Users :

From: Hilal Shaath (hilal_shaath_at_[hidden])
Date: 2006-05-06 15:24:55


Hello All:
    The serialization library is one of the best libraries I have used. I
used to to serialize a number of files with various sizes, and it works like
a charm.
    However, when I am using the wide-char archives, I get a linking error.
Here are the problem specifications:

When including :

#include "boost/archive/binary_woarchive.hpp"
#include "boost/archive/binary_wiarchive.hpp"

Or
#include "boost/archive/text_woarchive.hpp"
#include "boost/archive/text_wiarchive.hpp"

And attempt to use them (i.e.)

std::map<wstring,size_t> htable;
wstring root = L"c:";
findDFF(&htable,&root);
std::wofstream ofs("someFile",std::wios::binary);
boost::archive::binary_woarchive o(ofs);

I get the following linking errors:
[
DB3 error LNK2019: unresolved external symbol "public: __thiscall
boost::archive::basic_binary_oprimitive<class
boost::archive::binary_woarchive,class std::basic_ostream<unsigned
short,struct std::char_traits<unsigned short> >
>::~basic_binary_oprimitive<class boost::archive::binary_woarchive,class
std::basic_ostream<unsigned short,struct std::char_traits<unsigned short> >
>(void)"
(??1?$basic_binary_oprimitive_at_Vbinary_woarchive_at_archive@boost@@V?$basic_ostream_at_GU?$char_traits_at_G@std@@@std@@@archive_at_boost@@QAE_at_XZ)
referenced in function "public: __thiscall
boost::archive::binary_woarchive_impl<class
boost::archive::binary_woarchive>::~binary_woarchive_impl<class
boost::archive::binary_woarchive>(void)" (??1?$
]

   If I use the regular archives (binary_oarchive) I don't get any errors,
and it runs as a charm!

The compiler I am using is VC++ version 7.1/

   I would be grateful if some could point me to the reason for this error.

Thanks for your help

Hilal


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net