Allan, this one is for you I think.

Attempting to compile the rae branch of CVS with gcc-2.95.2 and lyxstring I get
the follwing at linking:

Unresolved:
overflow_error::overflow_error(lyxstring const &)

This makes sense. In xtl/objio.h we have:

class mem_buffer {
        ...

 public:
        class buffer_overflow_error: public std::overflow_error {
         public:
                int bytes_left;
                int bytes_needed;

                buffer_overflow_error(int left, int needed):
                        std::overflow_error("XTL mem_buffer overflow"),
                        bytes_left(left),bytes_needed(needed) {}
        };
        ...
};

(This is true also of auto_mem_buffer.)

The code compiles because of the jiggery-pokery in LString.h, but
std::overflow_error knows nothing about lyxstring and so the link fails.

Any ideas?
Angus

Reply via email to