Click here to Skip to main content
15,890,690 members
Articles / Programming Languages / C++
Tip/Trick

Boost serialization BOOST_CLASS_EXPORT_GUID in VS C++ project

Rate me:
Please Sign up or sign in to vote.
4.25/5 (3 votes)
21 Dec 2010CPOL 16.8K   2   1
#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.

License

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


Written By
Engineer
France France
I'm an independent Software Developer living in the Alpes Maritimes (aka French Riviera).

Even if in the past I have worked regularily with Fortran, Pascal, Basic (not necessarily Visual), and much more esoteric languages (who knows Prolog, Lotus 123 macros ?), even if I still work from time to time with C#, Java or some "interpreted languages", I'm more specialized in C++.
I work on MFC since the very first version, I enjoy working on Visual Studio 2010, its C++0x features, STL, MFC, boost, WTL ...

Comments and Discussions

 
GeneralReason for my vote of 5 Nice to know! Pin
DRLaverdure27-Dec-10 3:56
DRLaverdure27-Dec-10 3:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.