65.9K
CodeProject is changing. Read more.
Home

Boost serialization BOOST_CLASS_EXPORT_GUID in VS C++ project

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.25/5 (3 votes)

Dec 20, 2010

CPOL
viewsIcon

17118

#include must not be in precompiled header

I wasted some time understanding why BOOST_CLASS_EXPORT_GUID[^] doesn't work at all. Don't put #include <boost/serialization/export.hpp>; in the precompiled header file (typically stdafx.h) but in each .cpp file where you need it.