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 listed at
the end of this post verbatim).
My enviorment is all default except for an include path to boost.
Any solution?
#include <fstream>
#include
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"
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 listed 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; }
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; }
what compiler? what OS?
MSVStudio.NET 7.0 without stlport
have you built the libraries?
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
You're almost there.
just remove the #include
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:
but still there are errors like
c:\spirit161\spirit161\boost\spirit\core\basics.hpp(19) : fatal error C1083: Can not open include file: 'boost/mpl/apply_if.hpp': No such file or directory
can theese be resolved some how? In your docs, it sounds like it was possible rather easily..
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
"Robert Ramey"
wrote in message news:cp80do$oc0$1@sea.gmane.org... listed 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; }
You're almost there.
just remove the #include
from the corresponding spirit module and you'll be in business. It turns out that the name of apply_if.hpp was changed to eval_if.hpp for boost 1.32 (please don't ask me about this). However, it turns out that spirit didn't really require the above include anyway. So just do the above.
Robert Ramey
what compiler? what OS?
MSVStudio.NET 7.0 without stlport
have you built the libraries?
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
"Ray Hilton"
wrote in message news:cp8rf0$fkq$1@sea.gmane.org... 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
with mini-boost) so i get that.
set SPIRIT_ROOT=c:
but still there are errors like
c:\spirit161\spirit161\boost\spirit\core\basics.hpp(19) : fatal error C1083: Can not open include file: 'boost/mpl/apply_if.hpp': No such file or
can theese be resolved some how? In your docs, it sounds like it was possible rather easily..
"Robert Ramey"
wrote in message news:cp80do$oc0$1@sea.gmane.org... 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
Awesome support, built it successfully (i think ^.^)
bjam placed theese .libs in C:\boost\lib
libboost_wserialization-vc7-mt-1_32.lib
libboost_wserialization-vc7-mt.lib
libboost_wserialization-vc7-mt-gd-1_32.lib
libboost_wserialization-vc7-mt-gd.lib
libboost_wserialization-vc7-mt-s-1_32.lib
libboost_wserialization-vc7-mt-s.lib
libboost_wserialization-vc7-mt-sgd-1_32.lib
libboost_wserialization-vc7-mt-sgd.lib
libboost_wserialization-vc7-s-1_32.lib
libboost_wserialization-vc7-s.lib
libboost_wserialization-vc7-sgd-1_32.lib
libboost_wserialization-vc7-sgd.lib
But no .dll file? Was i suppose to get a .dll file. I don't think i saw any
errors in the update build.
After changing my boost include path to C:\Boost\include\boost-1_32
and adding a new library path C:\boost\lib
I still get link errors, the other libraries seem to work fine, i tested
signals.
Any ideas?
Do i have to specifiy an additional dependiecy?
Sorry im not that adept at building librarys from the command line.
"Robert Ramey"
touturial section of the documention (what im trying to compile is listed 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; }
Currently, the serialization library only comes in the static library
flavor - no dlls for now
Your list below doesn't include libboost_serialization.. (not lack of w) so
it doesn't look right to me.
"Ray Hilton"
Awesome support, built it successfully (i think ^.^)
bjam placed theese .libs in C:\boost\lib
libboost_wserialization-vc7-mt-1_32.lib libboost_wserialization-vc7-mt.lib libboost_wserialization-vc7-mt-gd-1_32.lib libboost_wserialization-vc7-mt-gd.lib libboost_wserialization-vc7-mt-s-1_32.lib libboost_wserialization-vc7-mt-s.lib libboost_wserialization-vc7-mt-sgd-1_32.lib libboost_wserialization-vc7-mt-sgd.lib libboost_wserialization-vc7-s-1_32.lib libboost_wserialization-vc7-s.lib libboost_wserialization-vc7-sgd-1_32.lib libboost_wserialization-vc7-sgd.lib
But no .dll file? Was i suppose to get a .dll file. I don't think i saw any errors in the update build. After changing my boost include path to C:\Boost\include\boost-1_32 and adding a new library path C:\boost\lib I still get link errors, the other libraries seem to work fine, i tested signals.
Any ideas? Do i have to specifiy an additional dependiecy?
Sorry im not that adept at building librarys from the command line.
You're almost there.
just remove the #include
from the corresponding spirit module and you'll be in business. It turns out that the name of apply_if.hpp was changed to eval_if.hpp for boost 1.32 (please don't ask me about this). However, it turns out that spirit didn't really require the above include anyway. So just do the above.
Robert Ramey
what compiler? what OS?
MSVStudio.NET 7.0 without stlport
have you built the libraries?
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
"Ray Hilton"
wrote in message news:cp8rf0$fkq$1@sea.gmane.org... 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
with mini-boost) so i get that.
set SPIRIT_ROOT=c:
but still there are errors like
c:\spirit161\spirit161\boost\spirit\core\basics.hpp(19) : fatal error C1083: Can not open include file: 'boost/mpl/apply_if.hpp': No such file or
can theese be resolved some how? In your docs, it sounds like it was possible rather easily..
"Robert Ramey"
wrote in message news:cp80do$oc0$1@sea.gmane.org... 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
"Robert Ramey"
wrote in message news:cp8tb3$iom$1@sea.gmane.org... packed directory the touturial section of the documention (what im trying to compile is listed 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; }
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 listed at the end of this post verbatim). My enviorment is all default except for an include path to boost. ^^^^^^^ Not sure what a default environment is. But it sounds like you need to build the serialization library and add it to the link parameters of your project. Run bjam under libs/serialization/build to build the libraries. There is more at:
http://www.boost.org/more/getting_started.html#Build_Install Jeff
participants (3)
-
Jeff Garland
-
Ray Hilton
-
Robert Ramey