|
Boost Users : |
Subject: Re: [Boost-users] [serialization] Export macro doesnt work
From: Jari (jaristr_at_[hidden])
Date: 2011-08-11 00:38:42
I have rather simple project considering its not DLL or Lib where I
need those exports. And I honestly dont know what the manual is saying
about BOOST_CLASS_EXPORT as I have applied it to my project according
to my best ability, and it doesnt work.
So can you help and give instruction how to use the macro?
I have included BOOST_CLASS_EXPORT(SomeClass) after every #include
"SomeClass.h" but something is wrong.
I dont know what to try.
I followed the manual to my best ability.
thanks.
On Thu, Aug 11, 2011 at 7:51 AM, Robert Ramey <ramey_at_[hidden]> wrote:
> Jari wrote:
>> Hi
>> I was trying to use BOOST_CLASS_EXPORT for all my classes in order to
>> save them but I always got unregistered class error.
>> So I used oa.register_type<object>(); for the class that was causing
>> the error and problem solved. But why doesnt the BOOST_CLASS_EXPORT
>> macro work?
>
> because you're not using it properly.
>
>> Why I need to use oa.register_type<object>(); ?
>
> because you can't get EXPORT to work.
>
> Robert Ramey
>
>> Im using Boost 1.46.1
>>
>> Thanks
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net