
Jeff Garland a écrit :
Well, my guess is that somehow your -L option or the library name in the -l are incorrect. The difference is that to_simple_string depends on the function you can't find from the library while most of the rest of date-time code is inline.
Well, I'll try with other libs, just to see.
When you remove that function all the rest of date-time is compiling inline and hence no linker error. There's no reason I'm aware of to use the PRE_1_33_FACET_IO with mingw so I'd recommend staying away from to_simple_string and just writing:
inline std::string my_simple_string(date d) { std::stringstream ss; ss << d; return ss.str(); }
It's likely that as support for older compilers is dropped to_simple_string will be re-written in this fashion.
HTH,
Thanks for your suggestion. Franck,e-