You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
boost/date_time/gregorian/greg_serialize.hpp:34:15: error: ‘split_free’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
And if we invert the order of the two boost inclusion headers (putting first text_oarchive.hpp and then greg_serialize.hpp) then it compiles but doesn't link:
main.cpp:(.text._ZN5boost13serialization4saveINS_7archive13text_oarchiveEEEvRT_RKNS_9gregorian4dateEj[_ZN5boost13serialization4saveINS_7archive13text_oarchiveEEEvRT_RKNS_9gregorian4dateEj]+0x36): undefined reference to `boost::gregorian::to_iso_string[abi:cxx11](boost::gregorian::date const&)'
In order to get it linked I added a new header: #include <boost/date_time/gregorian/gregorian.hpp>
So it seems that the header boost/date_time/gregorian/greg_serialize.hpp has missing dependencies, right? I didn't see any special consideration in the documentation of the library about using this header in a specific order.
The text was updated successfully, but these errors were encountered:
So I think this is a similar report as this one #176 - which even has a stack overflow question.
Documentation is certainly in order if the code isn't going to be changed -- which was the answer above since we're trying to uncouple the dependencies. Right now I don't know a better way to fix things.
What about having a new library date_time_serialization (for greg_serialize and time_serialize) that depends on date_time and serialization? This would be modular, the code wouldn't be duplicated just to avoid dependencies on another library and it wouldn't have the include ordering problem.
I noticed that the following code doesn't compile:
it throws the following error:
And if we invert the order of the two boost inclusion headers (putting first
text_oarchive.hpp
and thengreg_serialize.hpp
) then it compiles but doesn't link:In order to get it linked I added a new header:
#include <boost/date_time/gregorian/gregorian.hpp>
So it seems that the header
boost/date_time/gregorian/greg_serialize.hpp
has missing dependencies, right? I didn't see any special consideration in the documentation of the library about using this header in a specific order.The text was updated successfully, but these errors were encountered: