
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of François Mauger Sent: Tuesday, April 05, 2011 11:23 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] [Floating Point Utilities] where is the "nonfinite_num_facets.hpp"
Hi Paul,
Paul A. Bristow a écrit :
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of François Mauger Sent: Saturday, April 02, 2011 6:10 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] [Floating Point Utilities] where is the "nonfinite_num_facets.hpp"
Hi
I've used your example to work up some simpler and more commented examples OK.
But I've hit a linking snag with your example
------ Build started: Project: nonfinite_serialization, Configuration: Debug Win32 ------ Creating library J:\Cpp\fp_facet\fp_facet\Debug\nonfinite_serialization.lib and object J:\Cpp\fp_facet\fp_facet\Debug\nonfinite_serialization.exp nonfinite_num_facet_serialization.obj : error LNK2019: unresolved external symbol "public: __thiscall boost::archive::archive_exception::archive_exception(enum boost::archive::archive_exception::exception_code,char const *,char const *)"
(??0archive_exception@archive@boost@@QAE@W4exception_code@012@P BD1@Z)
referenced in function "protected: void __thiscall boost::archive::basic_text_oprimitive
>::save<class boost::archive::object_id_type>(class boost::archive::object_id_type const &)" (??$save@Vobject_id_type@archive@boost@@@?$basic_text_oprimitive@V? $ba
sic_os
tream@DU?$char_traits@D@std@@@std@@@archive@boost@@IAEXABVob ject_id_ty
pe@12@ @Z) J:\Cpp\fp_facet\fp_facet\Debug\nonfinite_serialization.exe : fatal error LNK1120: 1 unresolved externals ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I've never used serialization before, so I'm a bit baffled what I've done wrong here :-(
LINK : fatal error LNK1104: cannot open file 'libboost_serialization-vc100-mt-gd-1_46_1.lib'
so I built using bjam to provide this
.libboost_serialization-vc100-mt-gd-1_46_1.lib
Multi-threaded Debug DLL (/MDd) (same for static lib)
ok, it makes sense that you need the libboost_serialization DLL.
Unfortunately, I'm afraid I cannot help a lot. I'm not familiar at all with your system and the error message displayed. Do you use a recent Boost release, a recent compiler ? Does a sample programs that use only the nonfinite facets stuff and no archive work ?
Yes they are all fine. It is only when I try your nice example using Boost.Archive that this problem pops up. Looks like I am missing some library which provides this boost::archive::archive_exception::archive_exception I will investigate more. Paul --- Paul A. Bristow, Prizet Farmhouse, Kendal LA8 8AB UK +44 1539 561830 07714330204 pbristow@hetp.u-net.com