Re: simple example with boost/serialization?
Thanks Daniel, you were spot on: I did have a compiled copy of boost 1.29 in
there.
Now to the bad news: demo.cpp compiles but does not link with what looks
like a thousand symbols missing (archives and serialization stuff).
Seems like i'm missing a library, but which one? and is it supposed to come
with the debian package? (I do have all the include files.) I looked but
couldn't find a dedicated package for just the serialization library.
There're three mentions of "libboost_serialization" in the archive of this
mailing list but not a single word in the current documentation (website or
local). Is there some chunk of documentation I'm thoroughly missing?
Thanks again, alex
Date: Sun, 17 Apr 2005 09:47:36 +0100
From: Daniel James
I am trying to use the boost serialization library but can't compile even the simplest demo. [snip] In file included from /usr/local/include/boost/config.hpp:35, from /usr/include/boost/serialization/utility.hpp:21, from demo.cpp:16: /usr/local/include/boost/config/compiler/gcc.hpp:57:7: warning: #warning "Unknown compiler version - please run the configure tests and report the results"
This looks wrong, boost 1.32 should know about gcc-3.3. Also, boost/config.hpp is in /usr/local/include, but boost/serialization/utility.hpp is in /usr/include. My guess is that you've got an old version of boost in /usr/local/include, and the pre-built debian packages in /usr/include There's a bug in the debian packages which causes some files to be lost during an upgrade to the new version, it looks like that has happened here. If I'm right then you should remove the boost packages, remove the old version from /usr/local and reinstall the boost packages (the bug only affects upgrades, not installs). Daniel
First message so Hello everybody, I've compiled and installed the boost library to my /usr/local folder includes are in /usr/local/include/boost-1_32 and libraries are in /usr/local/lib ... now I'm trying to compile a project linked with the library correctly, but I got a linker warning with gcc that say that stl version for the program may conflect with the one that compiled boost... I didn't change anything so I'm not sure about it... but when I try to run the result executable it cannot find my libboost_program_options-gcc.so.1.32.so.1.32 ... while this library is shows up in the path... I also tried copying it to the current directory and same result... find cannot be found is the message i got... Daher
Alex Makarenko wrote:
Now to the bad news: demo.cpp compiles but does not link with what looks like a thousand symbols missing (archives and serialization stuff).
Seems like i'm missing a library, but which one? and is it supposed to come with the debian package? (I do have all the include files.) I looked but couldn't find a dedicated package for just the serialization library.
There're three mentions of "libboost_serialization" in the archive of this mailing list but not a single word in the current documentation (website or local). Is there some chunk of documentation I'm thoroughly missing?
Yes, the debian documentation. Look at /usr/share/doc/libboost-dev/README.Debian and all will be explained. The debian packages are set up a little differently to the normal boost setup which is why the boost documentation and mailing lists aren't much help here. Daniel
participants (3)
-
Alex Makarenko
-
Daher
-
Daniel James