> It turns out that the problem is that search_path::search_path is
> called from a static constructor, but static constructors are called
> *before* the global environment pointer is set, so getenv() doesn't
> work in a static constructor.  Not being a C++ expert, I have no
> idea whether this is a bug in my C++ implementation or a bug in
> groff.

I think this is a compiler bug.  Can you try a newer compiler version?
At least one other compiler (on OS/390) has problems with static
constructors too (but more basic ones).  BTW, the code in question is
more than 15 years old since there is no specific entry in the
ChangeLog file.


    Werner


_______________________________________________
Groff mailing list
Groff@gnu.org
http://lists.gnu.org/mailman/listinfo/groff

Reply via email to