what compiler? what OS?
MSVStudio.NET 7.0 without stlport
have you built the libraries?
are you compiling with bthe bjam system or ?
what compiler? what OS?
have you built the libraries?
is the appropriate path in your list of library paths?
do the xamplles build run wiht the bjam setup?
Robert Ramey
"Ray Hilton"
wrote in message news:cp7tge$ik3$1@sea.gmane.org... I get 17 link errors trying to compile a very simple example from the touturial section of the documention (what im trying to compile is
Whoops! For some reason i thought it was header only library.
Nope, i didnt have them built.
Ironicially, when i first started reading some of your documentation i
thought (for some reason or another) "thats strange, this library is header
only even though it deals a lot with I/O"
Then just didnt think about it anymore.
A few minutes later im building boost with bjam "-sTOOLS=vc7" install
Everything worked fine except python and serialization libraries :(
Digging around some, i find i need spirit 1.6.x. (btw which version exactly,
there are two one spirit only, and with a mini boost, i got the one packed
with mini-boost)
so i get that.
set SPIRIT_ROOT=c:
at
the end of this post verbatim). My enviorment is all default except for an include path to boost.
Any solution?
#include <fstream> #include
#include class gps_position { private: friend class boost::serialization::access; template<class Archive> void serialize(Archive & ar, const unsigned int version) { ar & degrees; ar & minutes; ar & seconds; } int degrees; int minutes; float seconds; public: gps_position(){}; gps_position(int d, int m, float s) : degrees(d), minutes(m), seconds(s) {} };
int main() { std::ofstream ofs("filename"); boost::archive::text_oarchive oa(ofs);
const gps_position g(35, 59, 24.567f); oa << g; ofs.close();
std::ifstream ifs("filename", std::ios::binary); boost::archive::text_iarchive ia(ifs);
gps_position newg; ia >> newg;
ifs.close(); return 0; }