Click here to Skip to main content
15,902,876 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
There are link errors when I compile a simple demo.

VB
In function `boost::archive::text_oarchive::text_oarchive(std::basic_ostream<char, std::char_traits<char> >&, unsigned int)':
demo.cpp:(.text._ZN5boost7archive13text_oarchiveC2ERSoj[_ZN5boost7archive13text_oarchiveC5ERSoj]+0x25): undefined reference to `boost::archive::text_oarchive_impl<boost::archive::text_oarchive>::text_oarchive_impl(std::basic_ostream<char, std::char_traits<char> >&, unsigned int)'


I checked boost's source and find that the constructor of text_oarchive_impl text_oarchive_impl(std::ostream & os, unsigned int flags) has no implementation in text_oarchive.hpp. Or is there any libraries I should have to link.

I find implementations in boost/archive/impl/text_oarchive_impl.ipp. What's the meaning of suffix .ipp ?

Thanks for your attention.
Posted
Updated 24-Jun-15 15:55pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900