Boost logo

Boost Users :

From: Franck Guillaud (f.guillaud_at_[hidden])
Date: 2007-02-25 13:18:18


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-


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